public enum PortStyle extends Enum<PortStyle>
ClassicTreeLayout.getPortStyle()
Enum Constant and Description |
---|
BORDER_CENTER
A constant defining that ports are placed at the center of the border of the nodes.
|
BORDER_DISTRIBUTED
A constant defining that ports are evenly distributed along the border of the nodes.
|
NODE_CENTER
A constant defining that ports are placed at the center of the nodes.
|
PORT_CONSTRAINTS_AWARE
A constant defining that ports are assigned based on given
port constraints . |
Modifier and Type | Method and Description |
---|---|
static PortStyle |
fromOrdinal(int ordinal) |
int |
value() |
static PortStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortStyle BORDER_CENTER
public static final PortStyle BORDER_DISTRIBUTED
public static final PortStyle NODE_CENTER
This constant uses (0,0)
as port offset.
public static final PortStyle PORT_CONSTRAINTS_AWARE
port constraints
.public static final PortStyle fromOrdinal(int ordinal)
public int value()
public static PortStyle 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 PortStyle[] values()
for (PortStyle c : PortStyle.values()) System.out.println(c);