Package com.iizix.prop.ui
Enum Class ImageOrientation
- All Implemented Interfaces:
- Serializable,- Comparable<ImageOrientation>,- Constable
Enumeration class for the orientations of the image.
Integer values for orientation of image:
- 1 = unchanged
- 2 = flipped horizontally
- 3 = rotated 180 degrees
- 4 = flipped vertically
- 5 = flipped horizontally, then rotated left by 90 degrees
- 6 = rotated clockwise by 90 degrees
- 7 = flipped horizontally, then rotated right by 90 degrees
- 8 = rotated counter-clockwise by 90 degrees
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionFlipped horizontally (= 2).Flipped horizontally, then rotated left or counter-clockwise by 90 degrees (= 5).Flipped horizontally, then rotated right or clockwise by 90 degrees (= 7).Flipped vertically (= 4).Rotated 180 degrees (= 3).Rotated left or counter-clockwise by 90 degrees (= 8).Rotated clockwise by 90 degrees (= 6).Unchanged (= 1).Undefined orientation (everything else than 1 to 8), used when an orientation value is not 1 through 8.
- Method SummaryModifier and TypeMethodDescription- static ImageOrientation- from- (int orientation) Returns an orientation from the given integer value.- static ImageOrientationReturns the enum constant of this class with the specified name.- static ImageOrientation[]- values()Returns an array containing the constants of this enum class, in the order they are declared.
- Enum Constant Details- UNDEFINEDUndefined orientation (everything else than 1 to 8), used when an orientation value is not 1 through 8.
- UNCHANGEDUnchanged (= 1).
- FLIP_HORZFlipped horizontally (= 2).
- ROTATE_180Rotated 180 degrees (= 3).
- FLIP_VERTFlipped vertically (= 4).
- FLIP_HORZ_ROTATE_LEFT_90Flipped horizontally, then rotated left or counter-clockwise by 90 degrees (= 5).
- ROTATE_RIGHT_90Rotated clockwise by 90 degrees (= 6).
- FLIP_HORZ_ROTATED_RIGHT_90Flipped horizontally, then rotated right or clockwise by 90 degrees (= 7).
- ROTATE_LEFT_90Rotated left or counter-clockwise by 90 degrees (= 8).
 
- Method Details- valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
- fromReturns an orientation from the given integer value.- Parameters:
- orientation- Value normally between 1 trough 8.
- Returns:
- The orientation matching value 1 through 8, otherwise {@link #UNDEFINED}.