public enum EditMoveConstraint extends Enum<EditMoveConstraint>
It is used by PointEditHandle
for example, to configure if the handle can be moved horizontally (parallel to the map) or vertically (in the Z direction).
Enum Constant and Description |
---|
XY
With this constraint, moving is only allowed in the x- and y-directions.
|
Z
With this constraint, moving is only allowed in the Z direction, keeping the x- and y-direction constant.
|
Modifier and Type | Method and Description |
---|---|
static EditMoveConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EditMoveConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EditMoveConstraint XY
public static final EditMoveConstraint Z
public static EditMoveConstraint[] values()
for (EditMoveConstraint c : EditMoveConstraint.values()) System.out.println(c);
public static EditMoveConstraint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null