| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.algorithms.Sugiyama
public class Sugiyama
This class combines all steps that are necessary to create a layout for a Graph object. It implements the Algorithm interface, so it's possible to visualize the progress with the DialogProgress class.
| Constructor Summary | |
|---|---|
Sugiyama(Graph graph)
Creates a new Sugyiama object for the given Graph object with default settings.  | 
|
Sugiyama(Graph graph,
         DefaultNodeView defaultNodeView,
         DefaultEdgeView defaultEdgeView)
Creates a new Sugyiama object for the given Graph object with given settings  | 
|
Sugiyama(Graph graph,
         DefaultNodeView defaultNodeView,
         DefaultEdgeView defaultEdgeView,
         Splitter splitter)
Creates a new Sugyiama object for the given Graph object with given settings and the given Splitter object.  | 
|
Sugiyama(Graph graph,
         Splitter splitter)
Creates a new Sugyiama object for the given Graph object with default settings.  | 
|
| Method Summary | |
|---|---|
 void | 
addChangeListener(javax.swing.event.ChangeListener l)
Registers a ChangeListener.  | 
 SugiyamaLayout | 
getLayout()
Returns the SugiyamaLayout object.  | 
 LayoutedGraph | 
getLayoutedGraph()
Returns the layouted graph.  | 
 java.lang.String | 
getMessage()
Returns a short description of the algorithm.  | 
 int | 
getPercentComplete()
Returns the progress in percents from 0 to 100  | 
 RubberBands | 
getRubberBands()
Returns the RubberBands object.  | 
 void | 
run()
Starts the algorithm.  | 
 void | 
stateChanged(javax.swing.event.ChangeEvent e)
 | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Sugiyama(Graph graph)
graph - Graph object, which will be layouted.
public Sugiyama(Graph graph,
                Splitter splitter)
graph - Graph objectsplitter - Splitter object
public Sugiyama(Graph graph,
                DefaultNodeView defaultNodeView,
                DefaultEdgeView defaultEdgeView)
graph - Graph object, which will be layouted.defaultNodeView - default node settings.defaultEdgeView - default edge settings.
public Sugiyama(Graph graph,
                DefaultNodeView defaultNodeView,
                DefaultEdgeView defaultEdgeView,
                Splitter splitter)
graph - Graph object, which will be layouted.defaultNodeView - default node settings.defaultEdgeView - default edge settings.splitter - Splitter object, which will be used to divide nodes into
                walls.| Method Detail | 
|---|
public LayoutedGraph getLayoutedGraph()
public java.lang.String getMessage()
Algorithm
getMessage in interface Algorithmpublic void run()
Algorithm
run in interface java.lang.Runnablerun in interface Algorithmpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic void addChangeListener(javax.swing.event.ChangeListener l)
Algorithm
addChangeListener in interface Algorithml - Changepublic int getPercentComplete()
Algorithm
getPercentComplete in interface Algorithmpublic SugiyamaLayout getLayout()
public RubberBands getRubberBands()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||