public class SubgraphLayout extends AbstractLayoutStage
SubgraphLayout
is a ILayoutStage
that filters out all graph elements that are not part of a specific
subgraph.
The nodes that induce this subgraph are marked using a IDataProvider
registered with a
specific key
. They will be arranged by the
core layout algorithm
.
Constructor and Description |
---|
SubgraphLayout()
Creates a new
SubgraphLayout instance with an optional
core layout algorithm . |
SubgraphLayout(ILayoutAlgorithm coreLayouter)
Creates a new
SubgraphLayout instance with an optional
core layout algorithm . |
Modifier and Type | Method and Description |
---|---|
void |
applyLayout(LayoutGraph graph)
Delegates the arrangement of the
specified subgraph of the given graph to the
core layout algorithm . |
Object |
getAffectedNodesDpKey()
Gets the key to register a
IDataProvider which marks the nodes that induce the subgraph to be arranged. |
void |
setAffectedNodesDpKey(Object value)
Sets the key to register a
IDataProvider which marks the nodes that induce the subgraph to be arranged. |
applyLayoutCore, getCoreLayout, setCoreLayout
public SubgraphLayout()
SubgraphLayout
instance with an optional
core layout algorithm
.public SubgraphLayout(ILayoutAlgorithm coreLayouter)
SubgraphLayout
instance with an optional
core layout algorithm
.coreLayouter
- The core layout algorithm.public void applyLayout(LayoutGraph graph)
specified subgraph
of the given graph to the
core layout algorithm
.applyLayout
in interface ILayoutAlgorithm
applyLayout
in class AbstractLayoutStage
graph
- the input graphpublic Object getAffectedNodesDpKey()
IDataProvider
which marks the nodes that induce the subgraph to be arranged.IllegalArgumentException
- if the specified key is null
LayoutKeys.AFFECTED_NODES_DPKEY
IDataProvider
keysetAffectedNodesDpKey(Object)
public void setAffectedNodesDpKey(Object value)
IDataProvider
which marks the nodes that induce the subgraph to be arranged.IllegalArgumentException
- if the specified key is null
LayoutKeys.AFFECTED_NODES_DPKEY
value
- the IDataProvider
keygetAffectedNodesDpKey()