|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemind.view.mindmapview.ArrowLinkView
This class represents a ArrowLink around a node.
Field Summary | |
protected java.awt.geom.CubicCurve2D |
arrowLinkCurve
|
protected MindMapArrowLink |
arrowLinkModel
|
protected int |
iterativeLevel
|
protected NodeView |
source
|
protected NodeView |
target
|
Constructor Summary | |
protected |
ArrowLinkView(MindMapArrowLink arrowLinkModel,
NodeView source,
NodeView target)
|
Method Summary | |
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 void |
setRendering(java.awt.Graphics2D g)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MindMapArrowLink arrowLinkModel
protected NodeView source
protected NodeView target
protected int iterativeLevel
protected java.awt.geom.CubicCurve2D arrowLinkCurve
Constructor Detail |
protected ArrowLinkView(MindMapArrowLink arrowLinkModel, NodeView source, NodeView target)
Method Detail |
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()
protected void setRendering(java.awt.Graphics2D g)
public void changeInclination(int originX, int originY, int newX, int newY)
originX
- originY
- newX
- newY
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |