| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.tree.AbstractNodePlacer
y.layout.hierarchic.TreeDrawer.HierarchicTreePlacer
public static class TreeDrawer.HierarchicTreePlacer
This class places nodes on their given layers (does not change the y-coordinates) if the 
 layout style of the hierarchic layout algorithm is set to
 HierarchicLayouter.TREE.
| Field Summary | 
|---|
| Fields inherited from class y.layout.tree.AbstractNodePlacer | 
|---|
| graph | 
| Fields inherited from interface y.layout.tree.NodePlacer | 
|---|
| DIRECTION_ANY, DIRECTION_EAST, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_WEST | 
| Constructor Summary | |
|---|---|
| TreeDrawer.HierarchicTreePlacer(double minimalNodeDistance)Creates a new TreeDrawer.HierarchicTreePlacerinstance with the given minimum allowed distance between two nodes 
 of the same layer. | |
| Method Summary | |
|---|---|
| protected  byte | determineChildConnector(Node child)Determines a connector direction for the given child node. | 
| protected  GenericTreeLayouter.SubtreeShape | placeSubtree(Node localRoot,
             byte parentConnectorDirection)Arranges the local root relative to the GenericTreeLayouter.SubtreeShapeof its children. | 
| Methods inherited from class y.layout.tree.AbstractNodePlacer | 
|---|
| clone, createProcessor, determineChildConnectors, getNodeShape, getSubtreeShape, placeSubtree | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TreeDrawer.HierarchicTreePlacer(double minimalNodeDistance)
TreeDrawer.HierarchicTreePlacer instance with the given minimum allowed distance between two nodes 
 of the same layer.
minimalNodeDistance - the minimum allowed distance between two nodes of the same layer| Method Detail | 
|---|
protected byte determineChildConnector(Node child)
AbstractNodePlacer
   This method is used in AbstractNodePlacer.determineChildConnectors(Node, DataMap) and must be implemented by subclasses.
 
determineChildConnector in class AbstractNodePlacerchild - the child node
NodePlacer interface
protected GenericTreeLayouter.SubtreeShape placeSubtree(Node localRoot,
                                                        byte parentConnectorDirection)
AbstractNodePlacerGenericTreeLayouter.SubtreeShape of its children.
 
   This is the main method that must be implemented by subclasses. It is called by 
   AbstractNodePlacer.placeSubtree(DataProvider, DataProvider, LayoutGraph, Node, byte).
 
placeSubtree in class AbstractNodePlacerlocalRoot - the local root nodeparentConnectorDirection - the direction of the connector
GenericTreeLayouter.SubtreeShape instance that describes the shape of the whole subtree rooted at the given local root| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||