|
|||||||||
| 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.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)
This method must be implemented by subclasses. |
AbstractRotatableNodePlacer.RootAlignment |
getRootAlignment()
|
boolean |
isCreateBus()
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)
Whether a bus should be created between the parent and its children. |
void |
setRootAlignment(AbstractRotatableNodePlacer.RootAlignment rootAlignment)
Setter for the horizontal alignment of the root node |
| Methods inherited from class y.layout.tree.AbstractRotatableNodePlacer |
|---|
createComparator, createProcessor, createRootNodeShape, createSubtreeShape, determineChildConnectors, 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 SimpleNodePlacer()
AbstractRotatableNodePlacer.Matrix.DEFAULT
public SimpleNodePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix)
modificationMatrix -
public SimpleNodePlacer(AbstractRotatableNodePlacer.Matrix modificationMatrix,
AbstractRotatableNodePlacer.RootAlignment rootAlignment)
modificationMatrix - rootAlignment - | Method Detail |
|---|
public AbstractRotatableNodePlacer.RootAlignment getRootAlignment()
public void setRootAlignment(AbstractRotatableNodePlacer.RootAlignment rootAlignment)
rootAlignment - protected byte determineChildConnector(Node child)
AbstractRotatableNodePlacer
determineChildConnector in class AbstractRotatableNodePlacerchild -
NodePlacer.DIRECTION_NORTHpublic boolean isCreateBus()
public void setCreateBus(boolean createBus)
createBus -
protected y.layout.tree.SubtreeShapeRotated placeSubtree(Node localRoot,
byte parentConnectorDirection)
placeSubtree in class AbstractRotatableNodePlacerlocalRoot - parentConnectorDirection -
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||