freemind.view.mindmapview
Class ArrowLinkView

java.lang.Object
  extended byfreemind.view.mindmapview.ArrowLinkView

public class ArrowLinkView
extends java.lang.Object

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

arrowLinkModel

protected MindMapArrowLink arrowLinkModel

source

protected NodeView source

target

protected NodeView target

iterativeLevel

protected int iterativeLevel

arrowLinkCurve

protected java.awt.geom.CubicCurve2D arrowLinkCurve
Constructor Detail

ArrowLinkView

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

getBounds

public java.awt.Rectangle getBounds()

paint

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


detectCollision

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


getControlPoint

protected java.awt.geom.Rectangle2D getControlPoint(java.awt.geom.Point2D p)

getColor

public java.awt.Color getColor()

getStroke

public java.awt.Stroke getStroke()

getWidth

public int getWidth()

getRealWidth

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


getMap

protected MapView getMap()

getModel

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


getZoom

protected double getZoom()

setRendering

protected void setRendering(java.awt.Graphics2D g)

changeInclination

public void changeInclination(int originX,
                              int originY,
                              int newX,
                              int newY)
Parameters:
originX -
originY -
newX -
newY -