public enum RootAlignment extends Enum<RootAlignment>
DefaultNodePlacer.DefaultNodePlacer(ChildPlacement, RootAlignment, double, double),
DefaultNodePlacer.DefaultNodePlacer(ChildPlacement, RootAlignment, RoutingStyle, double, double),
DefaultNodePlacer.DefaultNodePlacer(ChildPlacement, RootAlignment, RoutingStyle, double, double, double, double, double, double),
DefaultNodePlacer.getRootAlignment()| Enum Constant and Description |
|---|
CENTER
Alignment specifier which defines that the root node is placed aligned with the center of its subtrees.
|
LEADING
Alignment specifier which defines that the root node is placed aligned with its first subtree.
|
LEADING_OFFSET
Alignment specifier which defines that the root node is placed ahead of all its child subtrees.
|
LEADING_ON_BUS
Alignment specifier which defines that the root is placed ahead of all its subtrees, centered on the bus.
|
MEDIAN
Alignment specifier which defines that the root node is placed at the median of the connection points to its subtrees.
|
TRAILING
Alignment specifier which defines that the root node is placed aligned with its last subtree.
|
TRAILING_OFFSET
Alignment specifier which defines that the root is placed after all its subtree.
|
TRAILING_ON_BUS
Alignment specifier which defines that the root is placed after all its subtrees, centered on the bus.
|
| Modifier and Type | Method and Description |
|---|---|
static RootAlignment |
fromOrdinal(int ordinal) |
int |
value() |
static RootAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RootAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RootAlignment CENTER
public static final RootAlignment LEADING
Depending on the child placement, the root
node is placed aligned with the bounding box of its first (e.g.
ChildPlacement.HORIZONTAL_DOWNWARD: left) subtree.
public static final RootAlignment LEADING_OFFSET
Depending on the child placement, the root
node is placed ahead (e.g.
ChildPlacement.HORIZONTAL_DOWNWARD: left) of the combined bounding box of all
subtrees without labels.
public static final RootAlignment LEADING_ON_BUS
Depending on the child placement, the root
node is placed ahead (e.g.
ChildPlacement.HORIZONTAL_DOWNWARD: left) of the combined bounding box of all
subtrees without labels. The bus leaves directly from the root node.
PortConstraints at source, the edge may bend inside the node to connect to the
bus.DefaultNodePlacer.setRootAlignment(RootAlignment)public static final RootAlignment MEDIAN
public static final RootAlignment TRAILING
Depending on the child placement, the root
node is placed aligned with the bounding box of its last (e.g.
ChildPlacement.HORIZONTAL_DOWNWARD: right) subtree.
public static final RootAlignment TRAILING_OFFSET
Depending on the child placement, the root
node is placed after (e.g.
ChildPlacement.HORIZONTAL_DOWNWARD: right) of the combined bounding box of all
subtrees without labels.
public static final RootAlignment TRAILING_ON_BUS
Depending on the child placement, the root
node is placed after (e.g.
ChildPlacement.HORIZONTAL_DOWNWARD: right) of the combined bounding box of all
subtrees without labels. The bus leaves directly from the root node.
PortConstraints at source, the edge may bend inside the node to connect to the
bus.DefaultNodePlacer.setRootAlignment(RootAlignment)public static final RootAlignment fromOrdinal(int ordinal)
public int value()
public static RootAlignment 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 RootAlignment[] values()
for (RootAlignment c : RootAlignment.values()) System.out.println(c);