public enum RootPlacement extends Enum<RootPlacement>
Enum Constant and Description |
---|
CORNER
A root placement specifier for placing the root in the upper left corner of the subtree bounds with respect to the
actual
layout orientation . |
CORNER_SIDE
A root placement specifier for placing the root in the upper left corner of the subtree bounds with respect to the
actual
layout orientation . |
CORNER_TOP
A root placement specifier for placing the root of a subtree in the upper left corner of the subtree bounds with respect
to the actual
layout orientation . |
TOP
A root placement specifier for placing the root centered above its subtree, depending on the actual
layout orientation . |
Modifier and Type | Method and Description |
---|---|
static RootPlacement |
fromOrdinal(int ordinal) |
int |
value() |
static RootPlacement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RootPlacement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RootPlacement CORNER
layout orientation
.
Whether the root is placed entirely beside the subtree with no horizontal overlaps or entirely above the subtree without vertical overlaps will be determined by the layout of the subtree. The layout algorithm tries to minimize the bounds of the subtree.
public static final RootPlacement CORNER_SIDE
layout orientation
.
The root is placed entirely beside the subtree with no horizontal overlaps. This might by important if the root's height is very large while its width is small.
public static final RootPlacement CORNER_TOP
layout orientation
.
The root is placed entirely above the subtree with no vertical overlaps. This might by important if the root's width is very large while its height is small.
public static final RootPlacement TOP
layout orientation
.public static final RootPlacement fromOrdinal(int ordinal)
public int value()
public static RootPlacement valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static RootPlacement[] values()
for (RootPlacement c : RootPlacement.values()) System.out.println(c);