Enum Orientation
- java.lang.Object
-
- java.lang.Enum<Orientation>
-
- org.gcube.portlets.widgets.imagepreviewerwidget.shared.Orientation
-
- All Implemented Interfaces:
Serializable,Comparable<Orientation>
public enum Orientation extends Enum<Orientation> implements Serializable
Image orientations- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DO_NOT_ROTATEROTATE_180ROTATE_270ROTATE_90UNDEFINED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OrientationvalueOf(String name)Returns the enum constant of this type with the specified name.static Orientation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final Orientation UNDEFINED
-
DO_NOT_ROTATE
public static final Orientation DO_NOT_ROTATE
-
ROTATE_180
public static final Orientation ROTATE_180
-
ROTATE_90
public static final Orientation ROTATE_90
-
ROTATE_270
public static final Orientation ROTATE_270
-
-
Method Detail
-
values
public static Orientation[] 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 (Orientation c : Orientation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Orientation 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
-
-