freemind.view.mindmapview
Class EdgeView
java.lang.Object
freemind.view.mindmapview.EdgeView
- Direct Known Subclasses:
- BezierEdgeView, LinearEdgeView, SharpBezierEdgeView, SharpLinearEdgeView
- public abstract class EdgeView
- extends java.lang.Object
This class represents a single Edge of a MindMap.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
source
protected NodeView source
target
protected NodeView target
start
protected java.awt.Point start
end
protected java.awt.Point end
EdgeView
protected EdgeView(NodeView source,
NodeView target)
update
public void update()
- This should be a task of MindMapLayout
start,end must be initialized...
paint
public void paint(java.awt.Graphics2D g)
getLabel
public javax.swing.JLabel getLabel()
getColor
public abstract java.awt.Color getColor()
getStroke
public java.awt.Stroke getStroke()
getWidth
public int getWidth()
getRealWidth
public int getRealWidth()
- Get the width in pixels rather than in width constant (like -1)
getModel
protected MindMapEdge getModel()
getMap
protected MapView getMap()
getNodeShift
protected int getNodeShift(NodeView node)
- Get the vertical shift due to alignment of node connexion and edge width.
Bold edges are centered by Graphic. Applies this shift to change this.
getTargetShift
protected int getTargetShift()
getSourceShift
protected int getSourceShift()
setRendering
protected void setRendering(java.awt.Graphics2D g)