|
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 ComponentLayouter
implementation that allows to lay out isolated subgraphs within a group
as separate components.
OrthogonalGroupLayouter
uses this layout stage to arrange components.
OrthogonalGroupLayouter
as separate components.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
IsolatedGroupComponentLayouter()
Creates an instance of IsolatedGroupComponentLayouter with default settings. |
|
IsolatedGroupComponentLayouter(Layouter coreLayouter)
Creates an instance of IsolatedGroupComponentLayouter with the given layout algorithm as
core layout algorithm . |
Method Summary | |
---|---|
void |
doLayout(LayoutGraph graph)
Calculates the layout based on the current core layout algorithm . |
protected int |
findIsolatedGraphComponents(LayoutGraph graph,
NodeMap compNumber)
Determines the nodes that 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)
IsolatedGroupComponentLayouter
with the given layout algorithm as
core layout algorithm
.
coreLayouter
- the core layout algorithm that will be invoked for each component of the graphpublic IsolatedGroupComponentLayouter()
IsolatedGroupComponentLayouter
with default settings.
Method Detail |
---|
protected int findIsolatedGraphComponents(LayoutGraph graph, NodeMap compNumber)
Unlike ComponentLayouter
, this implementation additionally identifies isolated subgraphs within a group as
separate components.
graph
- the input graphcompNumber
- the NodeMap
that will be filled by the layout algorithm, such that it contains the zero-based
index of the component number to which each node belongs
public void doLayout(LayoutGraph graph)
core layout algorithm
.
Before calling the core layout algorithm, the IsolatedGroupComponentLayouter
identifies the isolated
subgraphs within a group and treats them as separate components.
doLayout
in interface Layouter
doLayout
in class ComponentLayouter
graph
- the input graphLayouter.canLayout(LayoutGraph)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |