freemind.view.mindmapview
Class EdgeView

java.lang.Object
  extended by freemind.view.mindmapview.EdgeView
Direct Known Subclasses:
BezierEdgeView, LinearEdgeView, SharpBezierEdgeView, SharpLinearEdgeView

public abstract class EdgeView
extends java.lang.Object

This class represents a single Edge of a MindMap.


Field Summary
protected static java.awt.BasicStroke DEF_STROKE
           
protected  java.awt.Point end
           
protected  NodeView source
           
protected  java.awt.Point start
           
 
Constructor Summary
EdgeView()
           
 
Method Summary
protected  void createEnd()
           
protected  void createStart()
           
abstract  java.awt.Color getColor()
           
protected static java.awt.Stroke getEclipsedStroke()
           
protected  MapView getMap()
           
protected  MindMapEdge getModel()
           
protected  NodeView getSource()
           
 java.awt.Stroke getStroke()
           
protected  NodeView getTarget()
           
 int getWidth()
           
protected  boolean isTargetEclipsed()
           
protected abstract  void paint(java.awt.Graphics2D g)
           
 void paint(NodeView target, java.awt.Graphics2D g)
          This should be a task of MindMapLayout start,end must be initialized...
protected  void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected NodeView source

start

protected java.awt.Point start

end

protected java.awt.Point end

DEF_STROKE

protected static final java.awt.BasicStroke DEF_STROKE
Constructor Detail

EdgeView

public EdgeView()
Method Detail

paint

public void paint(NodeView target,
                  java.awt.Graphics2D g)
This should be a task of MindMapLayout start,end must be initialized...

Parameters:
target - TODO

createEnd

protected void createEnd()

createStart

protected void createStart()

paint

protected abstract void paint(java.awt.Graphics2D g)

reset

protected void reset()

getColor

public abstract java.awt.Color getColor()

getStroke

public java.awt.Stroke getStroke()

getWidth

public int getWidth()

getModel

protected MindMapEdge getModel()

getMap

protected MapView getMap()

getEclipsedStroke

protected static java.awt.Stroke getEclipsedStroke()

isTargetEclipsed

protected boolean isTargetEclipsed()

getSource

protected NodeView getSource()
Returns:
Returns the source.

getTarget

protected NodeView getTarget()
Returns:
Returns the target.