org.globus.cog.gui.grapheditor.canvas.views.layouts
Interface GraphLayoutEngine
- All Known Subinterfaces:
- GraphLayoutEngine2
- All Known Implementing Classes:
- ExtendedSpringLayout, FlowLayout, HierarchicalLayout, PassiveLayout, PersistentLayoutEngine2, RadialFlowLayout, RadialHierarchicalLayout, RadialLayout, SpringLayout
- public interface GraphLayoutEngine
Interface defining a layout engine for a graph.
|
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. |
layoutGraph
public 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.
- 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.