freemind.view.mindmapview

Class EdgeView

Known Direct Subclasses:
BezierEdgeView, LinearEdgeView, SharpBezierEdgeView, SharpLinearEdgeView

public abstract class EdgeView
extends java.lang.Object

This class represents a single Edge of a MindMap.

Field Summary

protected Point
end
protected NodeView
source
protected Point
start
protected NodeView
target

Constructor Summary

EdgeView(NodeView source, NodeView target)

Method Summary

abstract Color
getColor()
JLabel
getLabel()
protected MapView
getMap()
protected MindMapEdge
getModel()
protected int
getNodeShift(NodeView node)
Get the vertical shift due to alignment of node connexion and edge width.
int
getRealWidth()
Get the width in pixels rather than in width constant (like -1)
protected int
getSourceShift()
Stroke
getStroke()
protected int
getTargetShift()
int
getWidth()
boolean
isAntialiasAll()
boolean
isAntialiasEdges()
void
paint(Graphics2D g)
protected void
setRendering(Graphics2D g)
void
update()
This should be a task of MindMapLayout start,end must be initialized...

Field Details

end

protected Point end

source

protected NodeView source

start

protected Point start

target

protected NodeView target

Constructor Details

EdgeView

protected EdgeView(NodeView source,
                   NodeView target)

Method Details

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...