public enum RootNodePolicy extends Enum<RootNodePolicy>
BalloonLayout.getRootNodePolicy()
Enum Constant and Description |
---|
CENTER_ROOT
Root node policy for choosing the center node as root node of the tree.
|
DIRECTED_ROOT
Root node policy for choosing a node with indegree
0 as root node of the tree. |
SELECTED_ROOT
Root node policy for choosing a custom node as the root node of the tree.
|
WEIGHTED_CENTER_ROOT
Root node policy for choosing a weighted center node as root node of the tree.
|
Modifier and Type | Method and Description |
---|---|
static RootNodePolicy |
fromOrdinal(int ordinal) |
int |
value() |
static RootNodePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RootNodePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RootNodePolicy CENTER_ROOT
A center node
induces a
minimum depth tree when being used as the root of that tree.
public static final RootNodePolicy DIRECTED_ROOT
0
as root node of the tree.
The selection of the root node will happen according to
Trees.getRoot(com.yworks.yfiles.algorithms.Graph)
.
public static final RootNodePolicy SELECTED_ROOT
The root node is specified using a IDataProvider
registered with the graph with key
BalloonLayout.SELECTED_ROOT_DPKEY
.
public static final RootNodePolicy WEIGHTED_CENTER_ROOT
A weighted center node
is a node which is part of the greatest number of all undirected paths in a graph.
public static final RootNodePolicy fromOrdinal(int ordinal)
public int value()
public static RootNodePolicy 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 RootNodePolicy[] values()
for (RootNodePolicy c : RootNodePolicy.values()) System.out.println(c);