java.lang.Object
de.grogra.imp2d.layout.Layout.Algorithm
de.grogra.imp2d.layout.HierarchyLayout.HAlgorithm
- Enclosing class:
- HierarchyLayout
-
Field Summary
Fields inherited from class de.grogra.imp2d.layout.Layout.Algorithm
finalGraph, graph, state, view
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Dividing the nodes of the graph into connectedNodes (= nodes that have edges to other nodes) and unconnectedNodes (= nodes that don't have edges to other nodes of the graph)protected void
This method has to be implemented to perform the layout.Methods inherited from class de.grogra.imp2d.layout.Layout.Algorithm
acceptNode, fitLayoutToWindow, getCommandName, getGlobalMaxBounds, getGlobalMaxCoordinates, getGlobalMaxCoordinates, getGlobalMaxDistances, invokeLayout, setProgress
-
Constructor Details
-
HAlgorithm
public HAlgorithm()
-
-
Method Details
-
layout
Description copied from class:Layout.Algorithm
This method has to be implemented to perform the layout.- Specified by:
layout
in classLayout.Algorithm
- Parameters:
nodes
- the first node of the linked list of all nodes- See Also:
-
disassociateNodes
public void disassociateNodes()Dividing the nodes of the graph into connectedNodes (= nodes that have edges to other nodes) and unconnectedNodes (= nodes that don't have edges to other nodes of the graph)
-