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 Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionstatic ImageOrientation
from
(int orientation) Returns an orientation from the given integer value.static ImageOrientation
Returns 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
UNDEFINED
Undefined orientation (everything else than 1 to 8), used when an orientation value is not 1 through 8.UNCHANGED
Unchanged (= 1).FLIP_HORZ
Flipped horizontally (= 2).ROTATE_180
Rotated 180 degrees (= 3).FLIP_VERT
Flipped vertically (= 4).FLIP_HORZ_ROTATE_LEFT_90
Flipped horizontally, then rotated left or counter-clockwise by 90 degrees (= 5).ROTATE_RIGHT_90
Rotated clockwise by 90 degrees (= 6).FLIP_HORZ_ROTATED_RIGHT_90
Flipped horizontally, then rotated right or clockwise by 90 degrees (= 7).ROTATE_LEFT_90
Rotated left or counter-clockwise by 90 degrees (= 8).
Method Details
values
Returns 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
valueOf
Returns 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 nameNullPointerException
- if the argument is null
from
Returns 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}
.