public enum CenterNodesPolicy extends Enum<CenterNodesPolicy>
RadialLayout.getCenterNodesPolicy()
Enum Constant and Description |
---|
CENTRALITY
Specifier for a center nodes policy which chooses the node with the highest centrality as center node.
|
CUSTOM
Specifier for a center nodes policy which uses center nodes specified by the user.
|
DIRECTED
Specifier for a center nodes policy which chooses all nodes with in-degree equal to
0 as center nodes. |
WEIGHTED_CENTRALITY
Specifier for a center nodes policy which chooses the node with the highest weighted centrality as center node.
|
Modifier and Type | Method and Description |
---|---|
static CenterNodesPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static CenterNodesPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CenterNodesPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CenterNodesPolicy CENTRALITY
public static final CenterNodesPolicy CUSTOM
IDataProvider
registered with the
according key
. The IDataProvider
returns true
for nodes that should be placed in the center.
If there exists more than one center node, they will be placed on the innermost circle while the center position stays empty.
public static final CenterNodesPolicy DIRECTED
0
as center nodes. If no
node with this property is present, an arbitrary node will be selected.public static final CenterNodesPolicy WEIGHTED_CENTRALITY
public static final CenterNodesPolicy fromOrdinal(int ordinal)
public int value()
public static CenterNodesPolicy 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 CenterNodesPolicy[] values()
for (CenterNodesPolicy c : CenterNodesPolicy.values()) System.out.println(c);