|
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.LeftRightPlacer
public class LeftRightPlacer
The LeftRightPlacer is a NodePlacer that arranges the Nodes on the left and right side of a vertical bus.
![]() |
![]() |
| 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 | |
|---|---|
LeftRightPlacer()
Creates a LeftRightPlacer with the default modificationMatrix |
|
LeftRightPlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
Creates a LeftRightPlacer with the given modificationMatrix |
|
| Method Summary | |
|---|---|
Comparator |
createComparator()
Returns null because no comparator exists for this node placer. |
protected byte |
determineChildConnector(Node child)
Throws IllegalStateException, should not be reached. |
void |
determineChildConnectors(Node localRoot,
DataMap connectorMap)
Determines the direction the children should place their connectors. |
double |
getHorizontalDistance()
Returns the horizontal distance/spacing between subtree shapes. |
double |
getVerticalDistance()
Returns the vertical distance/spacing between subtree shapes. |
boolean |
isPlaceLastOnBottom()
Returns whether or not the last child is placed at the bottom of the other. |
protected y.layout.tree.SubtreeShapeRotated |
placeSubtree(Node localRoot,
byte parentConnectorDirection)
Places the shapes of the children on the left and right side of a vertical bus. |
void |
setHorizontalDistance(double distance)
Specifies the horizontal distance/spacing between subtree shapes. |
void |
setPlaceLastOnBottom(boolean placeLastOnBottom)
Specifies whether or not the last child is placed at the bottom of the other. |
void |
setSpacing(double spacing)
Specifies the spacing between subtrees this NodePlacer is
arranging. |
void |
setVerticalDistance(double distance)
Specifies the vertical distance/spacing between subtree shapes. |
| Methods inherited from class y.layout.tree.AbstractRotatableNodePlacer |
|---|
createProcessor, createRootNodeShape, createSubtreeShape, getModificationMatrix, getPortConstraint, getSourcePointAbs, getSpacing, placeSubtree, translateDirectionToModel, translateDirectionToReal, translatePoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeftRightPlacer()
public LeftRightPlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
| Method Detail |
|---|
public double getHorizontalDistance()
By default, a value of 20 is used.
setHorizontalDistance(double),
getVerticalDistance(),
setVerticalDistance(double)public void setHorizontalDistance(double distance)
By default, a value of 20 is used.
distance - the horizontal distance/spacing between subtree shapes.getHorizontalDistance(),
getVerticalDistance(),
setVerticalDistance(double)public double getVerticalDistance()
By default, a value of 20 is used.
setVerticalDistance(double),
getHorizontalDistance(),
setHorizontalDistance(double)public void setVerticalDistance(double distance)
By default, a value of 20 is used.
distance - the vertical distance/spacing between subtree shapes.getVerticalDistance(),
getHorizontalDistance(),
setHorizontalDistance(double)public void setSpacing(double spacing)
NodePlacer is
arranging. Calls
setHorizontalDistance(spacing);
setVerticalDistance(spacing);
setSpacing in class AbstractRotatableNodePlacersetHorizontalDistance(double),
setVerticalDistance(double)
public void determineChildConnectors(Node localRoot,
DataMap connectorMap)
determineChildConnectors in interface NodePlacerdetermineChildConnectors in class AbstractRotatableNodePlacerlocalRoot - the local root nodeconnectorMap - the map that will be used to store the valuesAbstractRotatableNodePlacer.determineChildConnector(Node)protected byte determineChildConnector(Node child)
determineChildConnector in class AbstractRotatableNodePlacerIllegalStateException - always.child - the child node
NodePlacer interface
protected y.layout.tree.SubtreeShapeRotated placeSubtree(Node localRoot,
byte parentConnectorDirection)
placeSubtree in class AbstractRotatableNodePlacerlocalRoot - the local root nodeparentConnectorDirection - the direction of the connector shape
public boolean isPlaceLastOnBottom()
By default, this feature is enabled.
true if the last child is placed at the bottom of the
other; false otherwise.public void setPlaceLastOnBottom(boolean placeLastOnBottom)
By default, this feature is enabled.
placeLastOnBottom - true if enabled;
false otherwise.public Comparator createComparator()
null because no comparator exists for this node placer.
createComparator in class AbstractRotatableNodePlacernull
|
© Copyright 2000-2012, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||