|
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.RootAlignment
public abstract static class AbstractRotatableNodePlacer.RootAlignment
This class represents the horizontal alignment of the root node. There are several implementation that may be used:
CENTER
: Placement in the centerCENTER_OVER_CHILDREN
: Placement in the center of the direct childrenLEADING
: Placement on the left of the children.TRAILING
: Placement on the right of the childrenLEFT
: Left alignment of root and childrenRIGHT
: Right alignment of root and children
Field Summary | |
---|---|
static AbstractRotatableNodePlacer.RootAlignment[] |
ALL
|
static AbstractRotatableNodePlacer.RootAlignment |
CENTER
Horizontal alignment at the center. |
static AbstractRotatableNodePlacer.RootAlignment |
CENTER_OVER_CHILDREN
Horizontal alignment at the center. |
static AbstractRotatableNodePlacer.RootAlignment |
LEADING
Horizontal alignment at the left side of the children |
static AbstractRotatableNodePlacer.RootAlignment |
LEFT
Horizontal alignment at the left. |
static AbstractRotatableNodePlacer.RootAlignment |
MEDIAN
Horizontal alignment at the median. |
static AbstractRotatableNodePlacer.RootAlignment |
RIGHT
Horizontal alignment at the right. |
static AbstractRotatableNodePlacer.RootAlignment |
TRAILING
Horizontal alignment at the right side of the children. |
Constructor Summary | |
---|---|
AbstractRotatableNodePlacer.RootAlignment()
|
Method Summary | |
---|---|
protected static Rectangle2D |
getBounds(List shapes)
Calculates the bounds of a list of shapes. |
protected abstract void |
placeParentHorizontal(y.layout.tree.SubtreeShapeRotated rootShape,
List shapes,
Rectangle2D shapeBounds,
double spacing)
This method moves the rootShape to the right position relative to the children's shapes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AbstractRotatableNodePlacer.RootAlignment CENTER
public static final AbstractRotatableNodePlacer.RootAlignment MEDIAN
public static final AbstractRotatableNodePlacer.RootAlignment LEADING
public static final AbstractRotatableNodePlacer.RootAlignment TRAILING
public static final AbstractRotatableNodePlacer.RootAlignment LEFT
public static final AbstractRotatableNodePlacer.RootAlignment RIGHT
public static final AbstractRotatableNodePlacer.RootAlignment CENTER_OVER_CHILDREN
public static final AbstractRotatableNodePlacer.RootAlignment[] ALL
Constructor Detail |
---|
public AbstractRotatableNodePlacer.RootAlignment()
Method Detail |
---|
protected abstract void placeParentHorizontal(y.layout.tree.SubtreeShapeRotated rootShape, List shapes, Rectangle2D shapeBounds, double spacing)
rootShape
- the shape of the root node that is movedshapes
- list of shapes of the children nodesshapeBounds
- accumulated shapes of all children's shapesspacing
- the spacing that should be used.protected static Rectangle2D getBounds(List shapes)
shapes
- the list of shapes the bounds shall be calculated of.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |