org.globus.cog.gui.grapheditor.targets.swing.util.export
Class PassiveLayout
java.lang.Object
org.globus.cog.gui.grapheditor.targets.swing.util.export.PassiveLayout
- All Implemented Interfaces:
- GraphLayoutEngine
- public class PassiveLayout
- extends Object
- implements GraphLayoutEngine
|
Method Summary |
Hashtable |
layoutGraph(GraphInterface graph,
Hashtable fixedNodes)
This method takes a graph and a Hashtable with the nodes that cannot be moved and
returns a Hashtable with the coordinates of the nodes after doing the layout. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassiveLayout
public PassiveLayout()
layoutGraph
public Hashtable layoutGraph(GraphInterface graph,
Hashtable fixedNodes)
- Description copied from interface:
GraphLayoutEngine
- This method takes a graph and a Hashtable with the nodes that cannot be moved and
returns a Hashtable with the coordinates of the nodes after doing the layout.
- Specified by:
layoutGraph in interface GraphLayoutEngine
- Parameters:
graph - The graph that needs to be layed outfixedNodes - A Hashtable containing Node objects as keys, and
Points as elements, which specify the coordinates of the non-movable nodes
- Returns:
- a Hashtable with Node objects as keys and Point objects as coordinates
for the nodes.