|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.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 |
getSplitSegmentLength()
Returns the split segment length. |
void |
setCoreLayouter(Layouter l)
Sets 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 void setSplitSegmentLength(double l)
public double getSplitSegmentLength()
setSplitSegmentLength(double)public boolean canLayout(LayoutGraph graph)
true
canLayout in interface Layouterpublic void doLayout(LayoutGraph graph)
doLayout in interface Layouterpublic Layouter getCoreLayouter()
getCoreLayouter in interface LayoutStagepublic void setCoreLayouter(Layouter l)
setCoreLayouter in interface LayoutStage
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||