|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--y.layout.hierarchic.AsIsLayerer
This layerer implementation assigns layers by analysing already existing node coordinates. Nodes whose bounding boxes intesect a common y-coordinate are assigned to the same layer.
| Field Summary |
| Fields inherited from interface y.layout.LayoutOrientation |
BOTTOM_TO_TOP, LEFT_TO_RIGHT, RIGHT_TO_LEFT, TOP_TO_BOTTOM |
| Constructor Summary | |
AsIsLayerer()
|
|
| Method Summary | |
int |
assignNodeLayer(LayoutGraph g,
NodeMap layerMap,
EdgeList reversedEdges)
This method assigns the nodes in the graph to layers. |
byte |
getOrientation()
Returns the orientation assumed by this layerer. |
void |
setOrientation(byte orientation)
Sets the orientation assumed by this layerer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AsIsLayerer()
| Method Detail |
public void setOrientation(byte orientation)
LayoutOrientation.TOP_TO_BOTTOM is set.
orientation - one of LayoutOrientation.TOP_TO_BOTTOM,
LayoutOrientation.LEFT_TO_RIGHT, LayoutOrientation.RIGHT_TO_LEFT, and
LayoutOrientation.BOTTOM_TO_TOP.public byte getOrientation()
AsIsLayerer.setOrientation(byte)
public int assignNodeLayer(LayoutGraph g,
NodeMap layerMap,
EdgeList reversedEdges)
Layerer
assignNodeLayer in interface Layererg - the graph for which the layers are determined.layerMap - here the layers are storedreversedEdges - here the edges are stored which had been reversed.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||