|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.tree.AbstractRotatableNodePlacer
y.layout.tree.BusPlacer
public class BusPlacer
The BusPlacer creates a bus to which all child nodes and the local root node are connected.
![]() |
![]() |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class y.layout.tree.AbstractRotatableNodePlacer |
|---|
AbstractRotatableNodePlacer.Matrix, AbstractRotatableNodePlacer.RootAlignment |
| Field Summary |
|---|
| Fields inherited from class y.layout.tree.AbstractRotatableNodePlacer |
|---|
createdChildren, graph, modificationMatrix, nodeShapeProvider, spacing, subtreeShapeProvider |
| Fields inherited from interface y.layout.tree.NodePlacer |
|---|
DIRECTION_ANY, DIRECTION_EAST, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_WEST |
| Constructor Summary | |
|---|---|
BusPlacer()
Creates a new instance of BusPlacer with default settings. |
|
BusPlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
Creates a new BusPlacer instance that uses the transformation defined by the given matrix. |
|
| Method Summary | |
|---|---|
java.util.Comparator |
createComparator()
Creates a Comparator for outgoing edges that takes the rotation into account. |
protected byte |
determineChildConnector(Node child)
Determines a connector direction for the given child node. |
void |
determineChildConnectors(Node localRoot,
DataMap connectorMap)
Determines connector directions depending on whether or not the child nodes are placed above or below the bus. |
protected y.layout.tree.SubtreeShapeRotated |
placeSubtree(Node localRoot,
byte parentConnectorDirection)
Places all children of the local root below and above a bus segment that is shared by the edges. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BusPlacer()
BusPlacer with default settings.
public BusPlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
BusPlacer instance that uses the transformation defined by the given matrix.
modificationMatrix - the transformation matrix
java.lang.IllegalArgumentException - if the given transformation matrix is null| Method Detail |
|---|
protected byte determineChildConnector(Node child)
determineChildConnector in class AbstractRotatableNodePlacerdetermineChildConnectors(Node, DataMap).child - the child node
NodePlacer interface
java.lang.IllegalStateException - if this method is called
public void determineChildConnectors(Node localRoot,
DataMap connectorMap)
When a child node is placed above the bus, the edge should connect north,
otherwise it should connect south.
determineChildConnectors in interface NodePlacerdetermineChildConnectors in class AbstractRotatableNodePlacerlocalRoot - the local rootconnectorMap - the map that must be used for storing the direction specifiers of the child nodesAbstractRotatableNodePlacer.determineChildConnector(Node)
protected y.layout.tree.SubtreeShapeRotated placeSubtree(Node localRoot,
byte parentConnectorDirection)
The bus is located below the local root and the children are placed below this bus or next to the local root.
placeSubtree in class AbstractRotatableNodePlacerlocalRoot - the local root nodeparentConnectorDirection - the direction specifier for the connector of the local root node to its parent node
public java.util.Comparator createComparator()
Comparator for outgoing edges that takes the rotation into account.
This implementation keeps the current order of edges.
createComparator in class AbstractRotatableNodePlacernull
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||