freemind.view.mindmapview
Class EdgeView

java.lang.Object
  extended byfreemind.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  java.awt.Point end
           
protected  NodeView source
           
protected  java.awt.Point start
           
protected  NodeView target
           
 
Constructor Summary
protected EdgeView(NodeView source, NodeView target)
           
 
Method Summary
abstract  java.awt.Color getColor()
           
 javax.swing.JLabel getLabel()
           
protected  MapView getMap()
           
protected  MindMapEdge getModel()
           
protected  int getNodeShift(NodeView node)
          Get the vertical shift due to alignment of node connexion and edge width.
 int getRealWidth()
          Get the width in pixels rather than in width constant (like -1)
protected  int getSourceShift()
           
 java.awt.Stroke getStroke()
           
protected  int getTargetShift()
           
 int getWidth()
           
 boolean isAntialiasAll()
           
 boolean isAntialiasEdges()
           
 void paint(java.awt.Graphics2D g)
           
protected  void setRendering(java.awt.Graphics2D g)
           
 void update()
          This should be a task of MindMapLayout start,end must be initialized...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected NodeView source

target

protected NodeView target

start

protected java.awt.Point start

end

protected java.awt.Point end
Constructor Detail

EdgeView

protected EdgeView(NodeView source,
                   NodeView target)
Method Detail

update

public void update()
This should be a task of MindMapLayout start,end must be initialized...


paint

public void paint(java.awt.Graphics2D g)

getLabel

public javax.swing.JLabel getLabel()

getColor

public abstract 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)


getModel

protected MindMapEdge getModel()

getMap

protected MapView getMap()

getNodeShift

protected int getNodeShift(NodeView node)
Get the vertical shift due to alignment of node connexion and edge width. Bold edges are centered by Graphic. Applies this shift to change this.


getTargetShift

protected int getTargetShift()

getSourceShift

protected int getSourceShift()

setRendering

protected void setRendering(java.awt.Graphics2D g)

isAntialiasAll

public boolean isAntialiasAll()

isAntialiasEdges

public boolean isAntialiasEdges()