public enum SnapPolicy extends Enum<SnapPolicy>
IGridConstraintProvider
.Enum Constant and Description |
---|
NO_SNAPPING
Don't perform snapping.
|
TO_GREATER
Snap to the nearest grid coordinate whose value is not less than the current coordinate.
|
TO_NEAREST
Snap to the nearest grid coordinate.
|
TO_SMALLER
Snap to the nearest grid coordinate whose value is not greater than the current coordinate.
|
Modifier and Type | Method and Description |
---|---|
static SnapPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static SnapPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnapPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnapPolicy NO_SNAPPING
public static final SnapPolicy TO_GREATER
public static final SnapPolicy TO_NEAREST
public static final SnapPolicy TO_SMALLER
public static final SnapPolicy fromOrdinal(int ordinal)
public int value()
public static SnapPolicy 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 SnapPolicy[] values()
for (SnapPolicy c : SnapPolicy.values()) System.out.println(c);