com.jgraph.layout.hierarchical
public class JGraphHierarchicalLayout extends Object implements JGraphLayout, JGraphLayout.Stoppable
JGraphCompoundLayout
as a complete model of the hierarchy
needs to be passed into each step and
Field Summary | |
---|---|
protected boolean | compactLayout
Whether or not to pull together sections of layout into empty space |
protected JGraphHierarchicalLayoutStep | crossingStage
The second stage of a Sugiyama layout |
protected JGraphHierarchicalLayoutStep | cycleStage
A cycle pre-processing stage |
protected boolean | deterministic
Whether or not cells are ordered according to the order in the graph
model. |
protected boolean | fineTuning
Whether or not to perform local optimisations and iterate multiple times
through the algorithm |
protected boolean | fixRoots
Whether or not to fix the position of the root cells. |
protected double | interHierarchySpacing
The spacing buffer between unconnected hierarchies |
protected double | interRankCellSpacing
The spacing buffer added between cell on adjacent layers |
protected double | intraCellSpacing
The spacing buffer added between cells on the same layer |
protected JGraphHierarchicalLayoutStep | layeringStage
The first stage of a Sugiyama layout |
protected boolean | layoutFromSinks
Whether or not the initial scan of the graph to determine the layer
assigned to each vertex starts from the sinks or source (the sinks
being vertices with the fewest, preferable zero, outgoing edges and
sources same with incoming edges). |
protected JGraphHierarchyModel | model
The internal model formed of the layout |
protected int | orientation
The position of the root node(s) relative to the laid out graph in |
protected double | parallelEdgeSpacing
The distance between each parallel edge on each ranks for long edges |
protected JGraphHierarchicalLayoutStep | placementStage
The third stage of a Sugiyama layout |
protected JGraphLayoutProgress | progress
The layout progress bar |
Constructor Summary | |
---|---|
JGraphHierarchicalLayout()
The default constructor
| |
JGraphHierarchicalLayout(boolean deterministic)
Creates a hierarchical layout, constructing the components of the layout
stages
|
Method Summary | |
---|---|
double | getInterHierarchySpacing() |
double | getInterRankCellSpacing() |
double | getIntraCellSpacing() |
int | getOrientation() |
double | getParallelEdgeSpacing() |
JGraphLayoutProgress | getProgress() |
boolean | isCompactLayout() |
boolean | isDeterministic() |
boolean | isFineTuning() |
boolean | isFixRoots() |
boolean | isLayoutFromSinks() |
void | run(JGraphFacade facade)
The API method used to exercise the layout upon the facade description
and produce a separate description of the vertex position and edge
routing changes made. |
void | setCompactLayout(boolean compactLayout) |
void | setDeterministic(boolean deterministic) |
void | setFineTuning(boolean fineTuning) |
void | setFixRoots(boolean fixRoots) |
void | setInterHierarchySpacing(double interHierarchySpacing) |
void | setInterRankCellSpacing(double interRankCellSpacing) |
void | setIntraCellSpacing(double intraCellSpacing) |
void | setLayoutFromSinks(boolean layoutFromSinks) |
void | setLoggerLevel(Level level)
Sets the logging level of this class |
void | setOrientation(int orientation) |
void | setParallelEdgeSpacing(double parallelEdgeSpacing) |
String | toString()
Returns Hierarchical , the name of this algorithm. |
Parameters: deterministic whether or not this layout should be deterministic
Returns: Returns the interHierarchySpacing.
Returns: Returns the interRankCellSpacing.
Returns: Returns the intraCellSpacing.
Returns: Returns the orientation.
Returns: Returns the progress.
Returns: Returns the compactLayout.
Returns: Returns the deterministic.
Returns: Returns the fineTuning.
Returns: Returns the fixRoots.
Parameters: facade the facade object that describes and filters the graph to be acted upon
Parameters: compactLayout The compactLayout to set.
Parameters: deterministic The deterministic to set.
Parameters: fineTuning The fineTuning to set.
Parameters: fixRoots The fixRoots to set.
Parameters: interHierarchySpacing The interHierarchySpacing to set.
Parameters: interRankCellSpacing The interRankCellSpacing to set.
Parameters: intraCellSpacing The intraCellSpacing to set.
Parameters: level the logging level to set
Parameters: orientation The orientation to set.
Hierarchical
, the name of this algorithm.