public class ArrowLinkView
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.CubicCurve2D |
arrowLinkCurve |
protected MindMapArrowLink |
arrowLinkModel |
protected int |
iterativeLevel |
protected NodeView |
source |
protected NodeView |
target |
Modifier | Constructor and Description |
---|---|
protected |
ArrowLinkView(MindMapArrowLink arrowLinkModel,
NodeView source,
NodeView target) |
Modifier and Type | Method and Description |
---|---|
void |
changeInclination(int originX,
int originY,
int newX,
int newY) |
boolean |
detectCollision(java.awt.Point p)
Determines, whether or not a given point p is in an epsilon-neighbourhood
for the cubic curve.
|
java.awt.Rectangle |
getBounds() |
java.awt.Color |
getColor() |
protected java.awt.geom.Rectangle2D |
getControlPoint(java.awt.geom.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)
|
java.awt.Stroke |
getStroke() |
int |
getWidth() |
protected double |
getZoom() |
void |
paint(java.awt.Graphics graphics)
\param iterativeLevel describes the n-th nested arrowLink that is to be
painted.
|
protected MindMapArrowLink arrowLinkModel
protected NodeView source
protected NodeView target
protected int iterativeLevel
protected java.awt.geom.CubicCurve2D arrowLinkCurve
protected ArrowLinkView(MindMapArrowLink arrowLinkModel, NodeView source, NodeView target)
public java.awt.Rectangle getBounds()
public void paint(java.awt.Graphics graphics)
public boolean detectCollision(java.awt.Point p)
protected java.awt.geom.Rectangle2D getControlPoint(java.awt.geom.Point2D p)
public java.awt.Color getColor()
public java.awt.Stroke getStroke()
public int getWidth()
public int getRealWidth()
protected MapView getMap()
public MindMapArrowLink getModel()
protected double getZoom()
public void changeInclination(int originX, int originY, int newX, int newY)