|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.AbstractLayoutStage y.layout.ComponentLayouter y.layout.grouping.IsolatedGroupComponentLayouter
public class IsolatedGroupComponentLayouter
A special component layouter that handles hierarchically grouped graphs
in a special way. Unlike ComponentLayouter
this layout stage allows
isolated subgraphs within a group to be laid out as a separate component.
OrthogonalGroupLayouter
uses
this layout stage as component layouter.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
IsolatedGroupComponentLayouter()
Create a new instance of IsolatedGroupComponentLayouter. |
|
IsolatedGroupComponentLayouter(Layouter coreLayouter)
Create a new instance of IsolatedGroupComponentLayouter. |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Returns true, iff the coreLayouter returns true for all components of the graph. |
void |
doLayout(LayoutGraph graph)
Calculate the layout. |
protected int |
findIsolatedGraphComponents(LayoutGraph graph,
NodeMap compNumber)
Determines which nodes will belong to the same graph component. |
Methods inherited from class y.layout.AbstractLayoutStage |
---|
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsolatedGroupComponentLayouter(Layouter coreLayouter)
coreLayouter
- the core layouter being invoked for each component
of the graph.public IsolatedGroupComponentLayouter()
Method Detail |
---|
public boolean canLayout(LayoutGraph graph)
canLayout
in interface Layouter
canLayout
in class ComponentLayouter
protected int findIsolatedGraphComponents(LayoutGraph graph, NodeMap compNumber)
ComponentLayouter
this implementation identifies
isolated subgraphs within a group also as separate components.
public void doLayout(LayoutGraph graph)
ComponentLayouter
doLayout
in interface Layouter
doLayout
in class ComponentLayouter
AbstractLayoutStage.getCoreLayouter()
,
ComponentLayouter.ComponentLayouter(Layouter)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |