public enum PartitionStyle extends Enum<PartitionStyle>
CircularLayout.getPartitionStyle()
Enum Constant and Description |
---|
CYCLE
Specifier for a partition layout style where all nodes of a partition are placed on the boundary of a circle.
|
DISK
Specifier for a partition style with a semi-compact layout for each partition.
|
ORGANIC
Specifier for a partition style with a compact layout for each partition.
|
Modifier and Type | Method and Description |
---|---|
static PartitionStyle |
fromOrdinal(int ordinal) |
int |
value() |
static PartitionStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartitionStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartitionStyle CYCLE
CircularLayout.setPartitionStyle(PartitionStyle)
public static final PartitionStyle DISK
This style places nodes in the interior and on the border of a circle and arranges them in an organic manner, leading to a more compact layout. Only nodes with connections to other partitions are guaranteed to lie on the boundary of the resulting disk.
CircularLayout.setPartitionStyle(PartitionStyle)
public static final PartitionStyle ORGANIC
This style creates an organic circular layout for each partition. Even nodes that connect to different partitions may be placed in the interior of the resulting disk.
CircularLayout.setPartitionStyle(PartitionStyle)
public static final PartitionStyle fromOrdinal(int ordinal)
public int value()
public static PartitionStyle 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 PartitionStyle[] values()
for (PartitionStyle c : PartitionStyle.values()) System.out.println(c);