|
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.SubgraphLayouter
public class SubgraphLayouter
A layout stage that filters out all graph elements that are not part of a subgraph that is induced by the selected nodes of the input graph.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
SubgraphLayouter()
|
|
SubgraphLayouter(Layouter coreLayouter)
|
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be laid
out by this algorithm. |
void |
doLayout(LayoutGraph graph)
Main layout routine that assigns new layout information to the given graph. |
Object |
getSubgraphNodesDpKey()
Returns the DataProvider key which determines the nodes that
induce the subgraph to be laid out. |
void |
setSubgraphNodesDpKey(Object key)
Specifies the DataProvider key which determines the nodes that
induce the subgraph to be laid out. |
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 SubgraphLayouter(Layouter coreLayouter)
public SubgraphLayouter()
Method Detail |
---|
public Object getSubgraphNodesDpKey()
DataProvider
key which determines the nodes that
induce the subgraph to be laid out.
By default, Layouter.SELECTED_NODES
is used.
DataProvider
key.setSubgraphNodesDpKey(Object)
public void setSubgraphNodesDpKey(Object key)
DataProvider
key which determines the nodes that
induce the subgraph to be laid out.
By default, Layouter.SELECTED_NODES
is used.
IllegalArgumentException
- if the specified key is null
.key
- the DataProvider
key.getSubgraphNodesDpKey()
public void doLayout(LayoutGraph graph)
Layouter
public boolean canLayout(LayoutGraph graph)
Layouter
true
iff the given graph can be laid
out by this algorithm. Calling doLayout
with
the given graph as its argument will only success if
this method returns true
.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |