|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.hierarchic.AbstractDrawer | +--y.layout.hierarchic.TreeDrawer
This class implements the third phase of the hierarchic layout algorithm for trees. If the input graph is not a tree, an alternative drawer is invoked.
Field Summary |
Fields inherited from class y.layout.hierarchic.AbstractDrawer |
distanceToNextNode, dummyMap, edgeLengthKey, graph, minimalEdgeDistance, minimalLayerDistance, minimalMultiEdgeDistance, minimalNodeDistance |
Fields inherited from interface y.layout.hierarchic.Drawer |
NODE_BORDER_BOTTOM, NODE_BORDER_LEFT, NODE_BORDER_RIGHT, NODE_BORDER_TOP, NODE_DISTANCE |
Constructor Summary | |
TreeDrawer()
|
Method Summary | |
protected void |
assignCoordinates(NodeList[] layerLists,
DataProvider layerID)
Overwrite this method to assign the final coordinates to the objects of he graph. |
void |
setAlternativeDrawer(Drawer altDrawer)
Sets the drawer, which is called when graph is not a tree. |
void |
setMinimalEdgeDistance(double d)
Sets the minimal distance between two edges in the same layer. |
void |
setMinimalLayerDistance(double d)
Sets the minimal distance between two layers. |
void |
setMinimalMultiEdgeDistance(double d)
Sets the minimal distance between two edges sharing source/target in the same layer. |
void |
setMinimalNodeDistance(double d)
Sets the minimal distance between two nodes in the same layer. |
Methods inherited from class y.layout.hierarchic.AbstractDrawer |
assignCoordinates, assignYCoords, assignYCoords, dispose, getBottomBorder, getBottomHalf, getBottomY, getDistanceToNextNode, getFullHeight, getFullWidth, getLeftBorder, getLeftHalf, getLeftX, getMinimalEdgeDistance, getMinimalLayerDistance, getMinimalMultiEdgeDistance, getMinimalNodeDistance, getRightBorder, getRightHalf, getRightX, getTopBorder, getTopHalf, getTopY, initializeDistancesToNextNode, setDummyMap, setEdgeLengthKey |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeDrawer()
Method Detail |
public void setMinimalEdgeDistance(double d)
AbstractDrawer
setMinimalEdgeDistance
in interface Drawer
setMinimalEdgeDistance
in class AbstractDrawer
public void setMinimalMultiEdgeDistance(double d)
AbstractDrawer
setMinimalMultiEdgeDistance
in interface Drawer
setMinimalMultiEdgeDistance
in class AbstractDrawer
public void setMinimalNodeDistance(double d)
AbstractDrawer
setMinimalNodeDistance
in interface Drawer
setMinimalNodeDistance
in class AbstractDrawer
public void setMinimalLayerDistance(double d)
AbstractDrawer
setMinimalLayerDistance
in interface Drawer
setMinimalLayerDistance
in class AbstractDrawer
public void setAlternativeDrawer(Drawer altDrawer)
protected void assignCoordinates(NodeList[] layerLists, DataProvider layerID)
AbstractDrawer
assignCoordinates
in class AbstractDrawer
|
© 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 |