|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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.HierarchicTreePlacer instance 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.SubtreeShape of 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 layerMethod 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 AbstractNodePlacer
child
- the child node
NodePlacer
interfaceprotected GenericTreeLayouter.SubtreeShape placeSubtree(Node localRoot, byte parentConnectorDirection)
AbstractNodePlacer
GenericTreeLayouter.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 AbstractNodePlacer
localRoot
- 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-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |