public enum InitialPlacement extends Enum<InitialPlacement>
ClassicOrganicLayout
.Enum Constant and Description |
---|
AS_IS
Initial placement strategy for starting with the node locations as they are in the input graph.
|
RANDOM
Initial placement strategy for starting with randomly chosen node locations.
|
ZERO
Initial placement strategy for starting with all node location coordinates set to
0 . |
Modifier and Type | Method and Description |
---|---|
static InitialPlacement |
fromOrdinal(int ordinal) |
int |
value() |
static InitialPlacement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InitialPlacement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InitialPlacement AS_IS
This strategy is best if the existing layout should change as little as possible.
public static final InitialPlacement RANDOM
public static final InitialPlacement ZERO
0
.
This strategy is best if the initial placement should be maximally neutral, ignoring the existing layout of the input graph.
public static final InitialPlacement fromOrdinal(int ordinal)
public int value()
public static InitialPlacement 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 InitialPlacement[] values()
for (InitialPlacement c : InitialPlacement.values()) System.out.println(c);