JHotDraw 6.0b1

org.jhotdraw.util
Class GraphLayout

java.lang.Object
  extended by org.jhotdraw.standard.FigureChangeAdapter
      extended by org.jhotdraw.util.GraphLayout
All Implemented Interfaces:
java.util.EventListener, FigureChangeListener

public class GraphLayout
extends FigureChangeAdapter


Field Summary
 double FRICTION_FACTOR
           
 double LENGTH_FACTOR
           
 double REPULSION_LIMIT
           
 double REPULSION_STRENGTH
           
 double SPRING_STRENGTH
           
 double TORQUE_STRENGTH
           
 
Constructor Summary
GraphLayout()
           
 
Method Summary
 void addEdge(ConnectionFigure edge, int addlen)
           
 void addNode(Figure node)
           
 void figureChanged(FigureChangeEvent e)
          Sent when a figure changed
 void relax()
           
 void remove()
           
 
Methods inherited from class org.jhotdraw.standard.FigureChangeAdapter
figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LENGTH_FACTOR

public double LENGTH_FACTOR

REPULSION_STRENGTH

public double REPULSION_STRENGTH

REPULSION_LIMIT

public double REPULSION_LIMIT

SPRING_STRENGTH

public double SPRING_STRENGTH

TORQUE_STRENGTH

public double TORQUE_STRENGTH

FRICTION_FACTOR

public double FRICTION_FACTOR
Constructor Detail

GraphLayout

public GraphLayout()
Method Detail

addNode

public void addNode(Figure node)

addEdge

public void addEdge(ConnectionFigure edge,
                    int addlen)

relax

public void relax()

figureChanged

public void figureChanged(FigureChangeEvent e)
Sent when a figure changed

Specified by:
figureChanged in interface FigureChangeListener
Overrides:
figureChanged in class FigureChangeAdapter

remove

public void remove()

JHotDraw 6.0b1