public enum GroupsPolicy extends Enum<GroupsPolicy>
OrganicLayout
.Enum Constant and Description |
---|
FIXED
Group handling policy for keeping the relative positions of nodes that belong to the same group fixed.
|
IGNORE
Group handling policy for completely ignoring group nodes during the layout process.
|
LAYOUT
Group handling policy for considering and arranging the nodes contained in a group such that their togetherness is
highlighted.
|
Modifier and Type | Method and Description |
---|---|
static GroupsPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static GroupsPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GroupsPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GroupsPolicy FIXED
The fixed groups will be taken into account when placing the other nodes of the graph.
By registering a IDataProvider
with key
ClassicOrganicLayout.FIXED_GROUP_NODES_DPKEY
, the individual group nodes
can be marked as fixed or not fixed. If there is no data provider registered with the mentioned key, then all group
nodes of the graph will be treated as fixed.
public static final GroupsPolicy IGNORE
public static final GroupsPolicy LAYOUT
IDataProvider
with key ClassicOrganicLayout.FIXED_GROUP_NODES_DPKEY
.ClassicOrganicLayout.setGroupNodePolicy(GroupsPolicy)
public static final GroupsPolicy fromOrdinal(int ordinal)
public int value()
public static GroupsPolicy 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 GroupsPolicy[] values()
for (GroupsPolicy c : GroupsPolicy.values()) System.out.println(c);