|
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.AbstractRotatableNodePlacer y.layout.tree.BusPlacer
public class BusPlacer
The BusPlacer is a special NodePlacer that creates a bus where all child nodes and the root node
are connected to.
The BusPlacer is rotatable using the constructor BusPlacer(AbstractRotatableNodePlacer.Matrix)
.
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()
Initializes a new instance with the Default matrix. |
|
BusPlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
Initializes a new BusPlacer with the given modification matrix. |
Method Summary | |
---|---|
Comparator |
createComparator()
|
protected byte |
determineChildConnector(Node child)
This method must be implemented by subclasses. |
void |
determineChildConnectors(Node localRoot,
DataMap connectorMap)
This method initializes internal data structures, then uses the abstract method determineChildConnector(y.base.Node)
to determine the child node connector directions. |
protected y.layout.tree.SubtreeShapeRotated |
placeSubtree(Node localRoot,
byte parentConnectorDirection)
Places the root node and its children |
Methods inherited from class y.layout.tree.AbstractRotatableNodePlacer |
---|
createFromSketchComparator, createProcessor, createRootNodeShape, createSubtreeShape, getModificationMatrix, getPortConstraint, getSourcePointAbs, getSpacing, placeSubtree, setSpacing, translateDirectionToModel, translateDirectionToReal, translatePoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BusPlacer()
public BusPlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
modificationMatrix
- Method Detail |
---|
protected byte determineChildConnector(Node child)
AbstractRotatableNodePlacer
determineChildConnector
in class AbstractRotatableNodePlacer
child
-
NodePlacer.DIRECTION_SOUTH
public void determineChildConnectors(Node localRoot, DataMap connectorMap)
determineChildConnector(y.base.Node)
to determine the child node connector directions.
determineChildConnectors
in interface NodePlacer
determineChildConnectors
in class AbstractRotatableNodePlacer
localRoot
- the local root nodeconnectorMap
- the map that will be used to store the valuesdetermineChildConnector(y.base.Node)
protected y.layout.tree.SubtreeShapeRotated placeSubtree(Node localRoot, byte parentConnectorDirection)
placeSubtree
in class AbstractRotatableNodePlacer
localRoot
- parentConnectorDirection
-
public Comparator createComparator()
createComparator
in class AbstractRotatableNodePlacer
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |