|
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.SimpleNodePlacer
public class SimpleNodePlacer
This is a "default" NodePlacer. It arranges its children simply in one row.
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 | |
---|---|
SimpleNodePlacer()
Default constructor that creates an instance with the modification matrix AbstractRotatableNodePlacer.Matrix.DEFAULT |
|
SimpleNodePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
Constructor that creates an instance with the given modification matrix. |
|
SimpleNodePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix,
AbstractRotatableNodePlacer.RootAlignment rootAlignment)
Constructor that creates an instance with the given modification matrix and the horizontal root alignment |
Method Summary | |
---|---|
protected byte |
determineChildConnector(Node child)
Returns NodePlacer.DIRECTION_NORTH . |
AbstractRotatableNodePlacer.RootAlignment |
getRootAlignment()
Returns the horizontal alignment of the root node. |
boolean |
isCreateBus()
Returns whether a bus should be created between the parent and its children. |
protected y.layout.tree.SubtreeShapeRotated |
placeSubtree(Node localRoot,
byte parentConnectorDirection)
Places the children in a single row. |
void |
setCreateBus(boolean createBus)
Specifies whether a bus should be created between the parent and its children. |
void |
setRootAlignment(AbstractRotatableNodePlacer.RootAlignment rootAlignment)
Sets the horizontal alignment of the root node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleNodePlacer()
AbstractRotatableNodePlacer.Matrix.DEFAULT
public SimpleNodePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
public SimpleNodePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix, AbstractRotatableNodePlacer.RootAlignment rootAlignment)
Method Detail |
---|
public AbstractRotatableNodePlacer.RootAlignment getRootAlignment()
public void setRootAlignment(AbstractRotatableNodePlacer.RootAlignment rootAlignment)
protected byte determineChildConnector(Node child)
NodePlacer.DIRECTION_NORTH
.
determineChildConnector
in class AbstractRotatableNodePlacer
child
- the child node
NodePlacer.DIRECTION_NORTH
.public boolean isCreateBus()
public void setCreateBus(boolean createBus)
protected y.layout.tree.SubtreeShapeRotated placeSubtree(Node localRoot, byte parentConnectorDirection)
placeSubtree
in class AbstractRotatableNodePlacer
localRoot
- the local root nodeparentConnectorDirection
- the direction of the connector shape
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |