public enum ChildOrderingPolicy extends Enum<ChildOrderingPolicy>
BalloonLayout.getChildOrderingPolicy()
Enum Constant and Description |
---|
COMPACT
Child ordering policy which orders child nodes depending on their subtree size such that large subtrees are placed next
to small ones in order to save space.
|
SYMMETRIC
Child ordering policy which sorts the child nodes according to their wedge angles.
|
Modifier and Type | Method and Description |
---|---|
static ChildOrderingPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static ChildOrderingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChildOrderingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChildOrderingPolicy COMPACT
The actual area of a subtree is used as the subtree size. The smallest subtree is placed next to the largest subtree, followed by the second smallest subtree and so on. This way, drawings can become more compact, because the adjacent placement of large subtrees is avoided (which would require edges to become longer for subtrees to fit next to each other).
public static final ChildOrderingPolicy SYMMETRIC
The node with the greatest angle gets median position in the sorting order. The smaller the wedges, the farther away a node will be placed from the median position. Using this policy, the produced results are often more symmetric.
public static final ChildOrderingPolicy fromOrdinal(int ordinal)
public int value()
public static ChildOrderingPolicy 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 ChildOrderingPolicy[] values()
for (ChildOrderingPolicy c : ChildOrderingPolicy.values()) System.out.println(c);