freemind.view.mindmapview

Class EdgeView

public abstract class EdgeView extends Object

This class represents a single Edge of a MindMap.
Field Summary
protected Pointend
protected NodeViewsource
protected Pointstart
protected NodeViewtarget
Constructor Summary
protected EdgeView(NodeView source, NodeView target)
Method Summary
abstract ColorgetColor()
JLabelgetLabel()
protected MapViewgetMap()
protected MindMapEdgegetModel()
protected intgetNodeShift(NodeView node)
Get the vertical shift due to alignment of node connexion and edge width.
intgetRealWidth()
Get the width in pixels rather than in width constant (like -1)
protected intgetSourceShift()
StrokegetStroke()
protected intgetTargetShift()
intgetWidth()
booleanisAntialiasAll()
booleanisAntialiasEdges()
voidpaint(Graphics2D g)
protected voidsetRendering(Graphics2D g)
voidupdate()
This should be a task of MindMapLayout start,end must be initialized...

Field Detail

end

protected Point end

source

protected NodeView source

start

protected Point start

target

protected NodeView target

Constructor Detail

EdgeView

protected EdgeView(NodeView source, NodeView target)

Method Detail

getColor

public abstract Color getColor()

getLabel

public JLabel getLabel()

getMap

protected MapView getMap()

getModel

protected MindMapEdge getModel()

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.

getRealWidth

public int getRealWidth()
Get the width in pixels rather than in width constant (like -1)

getSourceShift

protected int getSourceShift()

getStroke

public Stroke getStroke()

getTargetShift

protected int getTargetShift()

getWidth

public int getWidth()

isAntialiasAll

public boolean isAntialiasAll()

isAntialiasEdges

public boolean isAntialiasEdges()

paint

public void paint(Graphics2D g)

setRendering

protected void setRendering(Graphics2D g)

update

public void update()
This should be a task of MindMapLayout start,end must be initialized...