| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.graph.Layout<SugiyamaNodeView,SugiyamaEdgeView>
pedviz.algorithms.sugiyama.SugiyamaLayout
public class SugiyamaLayout
This class applies the Sugiyama-Algorihm on the specified graph. It works in 3 phases:
| Constructor Summary | |
|---|---|
| SugiyamaLayout(Graph graph,
               DefaultNodeView defaultNodeView,
               DefaultEdgeView defaulEdgeView)Creates the SugiyamaLayout with the given Graph object. | |
| Method Summary | |
|---|---|
|  void | addChangeListener(javax.swing.event.ChangeListener l)Registers a ChangeListener. | 
|  SugiyamaEdgeView | createEdgeView(Edge edge,
               DefaultEdgeView defaultEdgeView)Factory method for creating a EdgeView object. | 
|  SugiyamaNodeView | createNodeView(Node node,
               DefaultNodeView defaultNodeView)Factory method for creating a NodeView object. | 
|  java.lang.String | getMessage()Returns a short description of the algorithm. | 
|  int | getPercentComplete()Returns the progress in percents from 0 to 100 | 
|  Splitter | getSplitter()Returns the used WallSplitter. | 
|  void | run()Starts the algorithm. | 
|  void | setSplitter(Splitter splitter)Sets what WallSplitter will be used. | 
| Methods inherited from class pedviz.graph.Layout | 
|---|
| getLayoutGraph, rerun | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SugiyamaLayout(Graph graph,
                      DefaultNodeView defaultNodeView,
                      DefaultEdgeView defaulEdgeView)
graph - the Graph object| Method Detail | 
|---|
public Splitter getSplitter()
public void setSplitter(Splitter splitter)
splitter - public void run()
Algorithm
run in interface java.lang.Runnablerun in interface Algorithmrun in class Layout<SugiyamaNodeView,SugiyamaEdgeView>public java.lang.String getMessage()
Algorithm
getMessage in interface AlgorithmgetMessage in class Layout<SugiyamaNodeView,SugiyamaEdgeView>public int getPercentComplete()
Algorithm
getPercentComplete in interface AlgorithmgetPercentComplete in class Layout<SugiyamaNodeView,SugiyamaEdgeView>public void addChangeListener(javax.swing.event.ChangeListener l)
Algorithm
addChangeListener in interface AlgorithmaddChangeListener in class Layout<SugiyamaNodeView,SugiyamaEdgeView>l - Change
public SugiyamaNodeView createNodeView(Node node,
                                       DefaultNodeView defaultNodeView)
Layout
createNodeView in class Layout<SugiyamaNodeView,SugiyamaEdgeView>node - Node object.defaultNodeView - node settings.
public SugiyamaEdgeView createEdgeView(Edge edge,
                                       DefaultEdgeView defaultEdgeView)
Layout
createEdgeView in class Layout<SugiyamaNodeView,SugiyamaEdgeView>edge - Edge object.defaultEdgeView - edge settings.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||