public enum NodeLabelingPolicy extends Enum<NodeLabelingPolicy>
BalloonLayout.getNodeLabelingPolicy()
Enum Constant and Description |
---|
HORIZONTAL
Node labeling policy for horizontal label placement at all nodes.
|
RAY_LIKE
Node labeling policy for ray-like label placement at nodes with zero or one child node.
|
RAY_LIKE_LEAVES
Node labeling policy for ray-like label placement at leaf nodes.
|
Modifier and Type | Method and Description |
---|---|
static NodeLabelingPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static NodeLabelingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeLabelingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeLabelingPolicy HORIZONTAL
The node labels are placed at the center of the corresponding node.
public static final NodeLabelingPolicy RAY_LIKE
Labels belonging to leaf nodes and nodes with exactly one successor (thus forming a sort of chain) will not be oriented horizontal but ray-like; they get the same orientation as their nodes' incoming edge. The labels of the other nodes will be oriented horizontally and placed at the center of the corresponding node.
public static final NodeLabelingPolicy RAY_LIKE_LEAVES
Labels corresponding to leaf nodes get the same orientation as their nodes' incoming edge and are placed outside the node (without overlaps). The labels of the other nodes will be oriented horizontally and placed at the center of the corresponding node.
public static final NodeLabelingPolicy fromOrdinal(int ordinal)
public int value()
public static NodeLabelingPolicy 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 NodeLabelingPolicy[] values()
for (NodeLabelingPolicy c : NodeLabelingPolicy.values()) System.out.println(c);