- java.lang.Object
-
- java.lang.Enum<AxisConstrained.AxisConstraints>
-
- eu.ess.xaos.ui.plot.plugins.AxisConstrained.AxisConstraints
-
- All Implemented Interfaces:
Serializable
,Comparable<AxisConstrained.AxisConstraints>
- Enclosing interface:
- AxisConstrained
public static enum AxisConstrained.AxisConstraints extends Enum<AxisConstrained.AxisConstraints>
Defines constraints of axis-related operations such as pan or zoom.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AxisConstrained.AxisConstraints
valueOf(String name)
Returns the enum constant of this type with the specified name.static AxisConstrained.AxisConstraints[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X_ONLY
public static final AxisConstrained.AxisConstraints X_ONLY
The operation should be allowed only along the X_ONLY axis.
-
Y_ONLY
public static final AxisConstrained.AxisConstraints Y_ONLY
The operation should be allowed only along Y_ONLY axis.
-
X_AND_Y
public static final AxisConstrained.AxisConstraints X_AND_Y
The operation can be performed on both X_ONLY and Y_ONLY axis.
-
-
Method Detail
-
values
public static AxisConstrained.AxisConstraints[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AxisConstrained.AxisConstraints c : AxisConstrained.AxisConstraints.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AxisConstrained.AxisConstraints valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-