freemind.view.mindmapview

Class ArrowLinkView

public class ArrowLinkView extends Object

This class represents a ArrowLink around a node.
Field Summary
protected CubicCurve2DarrowLinkCurve
protected MindMapArrowLinkarrowLinkModel
protected intiterativeLevel
protected NodeViewsource
protected NodeViewtarget
Constructor Summary
protected ArrowLinkView(MindMapArrowLink arrowLinkModel, NodeView source, NodeView target)
Method Summary
booleandetectCollision(Point p)
Determines, whether or not a given point p is in an epsilon-neighbourhood for the cubic curve.
RectanglegetBounds()
ColorgetColor()
protected Rectangle2DgetControlPoint(Point2D p)
protected MapViewgetMap()
MindMapArrowLinkgetModel()
fc: This getter is public, because the view gets the model by click on the curve.
intgetRealWidth()
Get the width in pixels rather than in width constant (like -1)
StrokegetStroke()
intgetWidth()
protected doublegetZoom()
voidpaint(Graphics graphics)
\param iterativeLevel describes the n-th nested arrowLink that is to be painted.
protected voidsetRendering(Graphics2D g)

Field Detail

arrowLinkCurve

protected CubicCurve2D arrowLinkCurve

arrowLinkModel

protected MindMapArrowLink arrowLinkModel

iterativeLevel

protected int iterativeLevel

source

protected NodeView source

target

protected NodeView target

Constructor Detail

ArrowLinkView

protected ArrowLinkView(MindMapArrowLink arrowLinkModel, NodeView source, NodeView target)

Method Detail

detectCollision

public boolean detectCollision(Point p)
Determines, whether or not a given point p is in an epsilon-neighbourhood for the cubic curve.

getBounds

public Rectangle getBounds()

getColor

public Color getColor()

getControlPoint

protected Rectangle2D getControlPoint(Point2D p)

getMap

protected MapView getMap()

getModel

public MindMapArrowLink getModel()
fc: This getter is public, because the view gets the model by click on the curve.

getRealWidth

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

getStroke

public Stroke getStroke()

getWidth

public int getWidth()

getZoom

protected double getZoom()

paint

public void paint(Graphics graphics)
\param iterativeLevel describes the n-th nested arrowLink that is to be painted.

setRendering

protected void setRendering(Graphics2D g)