public enum PortCandidateValidity extends Enum<PortCandidateValidity>
Validity
states.Enum Constant and Description |
---|
DYNAMIC
The candidate cannot be used to create a port, instead
IPortCandidate.getPortCandidateAt(com.yworks.yfiles.view.input.IInputModeContext, com.yworks.yfiles.geometry.PointD)
needs to be called to obtain a IPortCandidate that is either VALID or
INVALID . |
INVALID
The candidate should not be used to connect an edge to.
|
VALID
The candidate is valid and can be used to connect an edge to.
|
Modifier and Type | Method and Description |
---|---|
static PortCandidateValidity |
fromOrdinal(int ordinal) |
int |
value() |
static PortCandidateValidity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortCandidateValidity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortCandidateValidity DYNAMIC
IPortCandidate.getPortCandidateAt(com.yworks.yfiles.view.input.IInputModeContext, com.yworks.yfiles.geometry.PointD)
needs to be called to obtain a IPortCandidate
that is either VALID
or
INVALID
.public static final PortCandidateValidity INVALID
public static final PortCandidateValidity VALID
public static final PortCandidateValidity fromOrdinal(int ordinal)
public int value()
public static PortCandidateValidity 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 PortCandidateValidity[] values()
for (PortCandidateValidity c : PortCandidateValidity.values()) System.out.println(c);