public enum AxisConstraint extends Enum<AxisConstraint>
Enum Constant and Description |
---|
Both
Allow the operation (such as pan or zoom) on either x or y axes.
|
Horizontal
Allow the operation (such as pan or zoom) only on horizontal (x) axis.
|
None
Do not allow the operation.
|
Vertical
Allow the operation (such as pan or zoom) only on vertical (y) axis.
|
Modifier and Type | Method and Description |
---|---|
static AxisConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AxisConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AxisConstraint Horizontal
public static final AxisConstraint Vertical
public static final AxisConstraint Both
public static final AxisConstraint None
public static AxisConstraint[] values()
for (AxisConstraint c : AxisConstraint.values()) System.out.println(c);
public static AxisConstraint 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 nullCopyright © 2013–2016 Jason Winnebeck. All rights reserved.