Search in sources :

Example 6 with EdgeStyle

use of org.freeplane.features.edge.EdgeStyle in project freeplane by freeplane.

the class ForkMainView method getEdgeWidth.

public int getEdgeWidth() {
    final NodeView nodeView = getNodeView();
    final int edgeWidth = nodeView.getEdgeWidth();
    final EdgeStyle style = nodeView.getEdgeStyle();
    final int nodeLineWidth = style.getNodeLineWidth(edgeWidth);
    if (edgeWidth == 0)
        return nodeLineWidth;
    else {
        final int zoomedLineWidth = nodeView.getMap().getZoomed(nodeLineWidth);
        return zoomedLineWidth;
    }
}
Also used : Point(java.awt.Point) EdgeStyle(org.freeplane.features.edge.EdgeStyle)

Aggregations

EdgeStyle (org.freeplane.features.edge.EdgeStyle)6 Point (java.awt.Point)4 EdgeModel (org.freeplane.features.edge.EdgeModel)2 ModeController (org.freeplane.features.mode.ModeController)2 BasicStroke (java.awt.BasicStroke)1 Color (java.awt.Color)1 GradientPaint (java.awt.GradientPaint)1 Insets (java.awt.Insets)1 IExtension (org.freeplane.core.extension.IExtension)1 IActor (org.freeplane.core.undo.IActor)1 CloudController (org.freeplane.features.cloud.CloudController)1 CloudModel (org.freeplane.features.cloud.CloudModel)1 MCloudController (org.freeplane.features.cloud.mindmapmode.MCloudController)1 EdgeController (org.freeplane.features.edge.EdgeController)1 AutomaticEdgeColorHook (org.freeplane.features.edge.mindmapmode.AutomaticEdgeColorHook)1 MEdgeController (org.freeplane.features.edge.mindmapmode.MEdgeController)1 IFormattedObject (org.freeplane.features.format.IFormattedObject)1 NodeModel (org.freeplane.features.map.NodeModel)1 NodeSizeModel (org.freeplane.features.nodestyle.NodeSizeModel)1 NodeStyleController (org.freeplane.features.nodestyle.NodeStyleController)1