freemind.view.mindmapview

Class ArrowLinkView


public class ArrowLinkView
extends java.lang.Object

This class represents a ArrowLink around a node.

Field Summary

protected CubicCurve2D
arrowLinkCurve
protected MindMapArrowLink
arrowLinkModel
protected int
iterativeLevel
protected NodeView
source
protected NodeView
target

Constructor Summary

ArrowLinkView(MindMapArrowLink arrowLinkModel, NodeView source, NodeView target)

Method Summary

boolean
detectCollision(Point p)
Determines, whether or not a given point p is in an epsilon-neighbourhood for the cubic curve.
Rectangle
getBounds()
Color
getColor()
protected Rectangle2D
getControlPoint(Point2D p)
protected MapView
getMap()
MindMapArrowLink
getModel()
fc: This getter is public, because the view gets the model by click on the curve.
int
getRealWidth()
Get the width in pixels rather than in width constant (like -1)
Stroke
getStroke()
int
getWidth()
protected double
getZoom()
void
paint(Graphics graphics)
\param iterativeLevel describes the n-th nested arrowLink that is to be painted.
protected void
setRendering(Graphics2D g)

Field Details

arrowLinkCurve

protected CubicCurve2D arrowLinkCurve

arrowLinkModel

protected MindMapArrowLink arrowLinkModel

iterativeLevel

protected int iterativeLevel

source

protected NodeView source

target

protected NodeView target

Constructor Details

ArrowLinkView

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

Method Details

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)