|
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.DoubleLinePlacer
public class DoubleLinePlacer
The DoubleLinePlacer is a special node placer that places its children in
two lines.
This node placer is especially useful for leaves with great width.
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 | |
---|---|
DoubleLinePlacer()
Creates a new DoubleLinePlacer with the default modification matrix. |
|
DoubleLinePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
Creates a new DoubleLinePlacer with the given modification matrix. |
Method Summary | |
---|---|
protected byte |
determineChildConnector(Node child)
Returns NodePlacer.DIRECTION_NORTH |
AbstractRotatableNodePlacer.RootAlignment |
getRootAlignment()
Returns the horizontal alignment that is used for the root node. |
protected y.layout.tree.SubtreeShapeRotated |
placeSubtree(Node localRoot,
byte parentConnectorDirection)
Places the subtree in two lines. |
void |
setRootAlignment(AbstractRotatableNodePlacer.RootAlignment rootAlignment)
Specifies the horizontal alignment that is used for the root node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleLinePlacer()
public DoubleLinePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
modificationMatrix
- Method Detail |
---|
protected byte determineChildConnector(Node child)
NodePlacer.DIRECTION_NORTH
determineChildConnector
in class AbstractRotatableNodePlacer
child
-
NodePlacer.DIRECTION_NORTH
protected y.layout.tree.SubtreeShapeRotated placeSubtree(Node localRoot, byte parentConnectorDirection)
placeSubtree
in class AbstractRotatableNodePlacer
localRoot
- parentConnectorDirection
-
public AbstractRotatableNodePlacer.RootAlignment getRootAlignment()
public void setRootAlignment(AbstractRotatableNodePlacer.RootAlignment rootAlignment)
rootAlignment
- used for the root node.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |