|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.hierarchic.AbstractDrawer
y.layout.hierarchic.TreeDrawer
public class 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.
| Nested Class Summary | |
|---|---|
static class |
TreeDrawer.HierarchicTreePlacer
places nodes in their given layers (does not change the y coordinates) for the TREE layout style of a HierarchicLayouter. |
| 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 DrawersetMinimalEdgeDistance in class AbstractDrawerpublic void setMinimalMultiEdgeDistance(double d)
AbstractDrawer
setMinimalMultiEdgeDistance in interface DrawersetMinimalMultiEdgeDistance in class AbstractDrawerpublic void setMinimalNodeDistance(double d)
AbstractDrawer
setMinimalNodeDistance in interface DrawersetMinimalNodeDistance in class AbstractDrawerpublic void setMinimalLayerDistance(double d)
AbstractDrawer
setMinimalLayerDistance in interface DrawersetMinimalLayerDistance in class AbstractDrawerpublic void setAlternativeDrawer(Drawer altDrawer)
protected void assignCoordinates(NodeList[] layerLists,
DataProvider layerID)
AbstractDrawer
assignCoordinates in class AbstractDrawer
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||