public enum PortSide extends Enum<PortSide>
Enum Constant and Description |
---|
ANY
A weak constraint indicating that edges can connect to any side of a node.
|
EAST
A weak constraint indicating that edges can connect to the east side (i.e. right side) of a node.
|
NORTH
A weak constraint indicating that edges can connect to the north side (i.e. top side) of a node.
|
SOUTH
A weak constraint indicating that edges can connect to the south side (i.e. bottom side) of a node.
|
WEST
A weak constraint indicating that edges can connect to the west side (i.e. left side) of a node.
|
Modifier and Type | Method and Description |
---|---|
static PortSide |
fromOrdinal(int ordinal) |
int |
value() |
static PortSide |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortSide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortSide ANY
PortConstraint.create(PortSide, boolean)
public static final PortSide EAST
PortConstraint.create(PortSide, boolean)
public static final PortSide NORTH
PortConstraint.create(PortSide, boolean)
public static final PortSide SOUTH
PortConstraint.create(PortSide, boolean)
public static final PortSide WEST
PortConstraint.create(PortSide, boolean)
public static final PortSide fromOrdinal(int ordinal)
public int value()
public static PortSide 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 PortSide[] values()
for (PortSide c : PortSide.values()) System.out.println(c);