|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.organic.SplitEdgeLayoutStage
public class SplitEdgeLayoutStage
This layout stage replaces edges by a path of nodes before it calls a core layouter. After the core layouter is finished this stage transforms the substituted path of nodes back to the original edge. For each node in the path there will be a bend in the original edge. The coordinate of the bend will be the center coordinate of the corresponding path node.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
SplitEdgeLayoutStage()
Creates a new instance of SplitEdgeLayouter |
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Returns true |
void |
doLayout(LayoutGraph graph)
Assigns a new graph layout to the given layout graph |
Layouter |
getCoreLayouter()
Returns the core layouter. |
double |
getProxyNodeSize()
Returns the size used as width/height for proxy nodes, i.e. nodes inserted by this layout stage. |
Object |
getSplitEdgesDpKey()
Returns the DataProvider key that determines which edges
are to be split. |
Object |
getSplitNodesDpKey()
Returns the DataProvider key to mark the nodes, that were
created by splitting edges, for the core layouter. |
double |
getSplitSegmentLength()
Returns the split segment length. |
void |
setCoreLayouter(Layouter l)
Sets the core layouter. |
void |
setProxyNodeSize(double proxyNodeSize)
Sets the size which is used as width/height for proxy nodes, i.e. nodes inserted by this layout stage. |
void |
setSplitEdgesDpKey(Object key)
Specifies the DataProvider key that determines which edges
are to be split. |
void |
setSplitNodesDpKey(Object key)
Specifies the DataProvider key to mark the nodes, that were
created by splitting edges, for the core layouter. |
void |
setSplitSegmentLength(double l)
Sets the split segment length. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitEdgeLayoutStage()
Method Detail |
---|
public Object getSplitEdgesDpKey()
DataProvider
key that determines which edges
are to be split.
By default, Layouter.SELECTED_EDGES
is used.
DataProvider
key that determines which edges
are to be split.setSplitEdgesDpKey(Object)
public void setSplitEdgesDpKey(Object key)
DataProvider
key that determines which edges
are to be split.
By default, Layouter.SELECTED_EDGES
is used.
IllegalArgumentException
- if the specified key is null
.key
- the DataProvider
key.getSplitEdgesDpKey()
public Object getSplitNodesDpKey()
DataProvider
key to mark the nodes, that were
created by splitting edges, for the core layouter.
By default, Layouter.SELECTED_NODES
is used.
DataProvider
key to mark newly created nodes
by splitting edges.setSplitNodesDpKey(Object)
public void setSplitNodesDpKey(Object key)
DataProvider
key to mark the nodes, that were
created by splitting edges, for the core layouter.
By default, Layouter.SELECTED_NODES
is used.
IllegalArgumentException
- if the specified key is null
.key
- the DataProvider
key.getSplitNodesDpKey()
public void setSplitSegmentLength(double l)
public double getSplitSegmentLength()
setSplitSegmentLength(double)
public double getProxyNodeSize()
public void setProxyNodeSize(double proxyNodeSize)
public boolean canLayout(LayoutGraph graph)
true
canLayout
in interface Layouter
public void doLayout(LayoutGraph graph)
doLayout
in interface Layouter
public Layouter getCoreLayouter()
getCoreLayouter
in interface LayoutStage
public void setCoreLayouter(Layouter l)
setCoreLayouter
in interface LayoutStage
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |