Enum Class ScaleByPixels.Mode
- All Implemented Interfaces:
Serializable
,Comparable<ScaleByPixels.Mode>
,Constable
- Enclosing class:
ScaleByPixels
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionScale to fit the Y axis inside a rectangle's Y axis, maintaining aspect ratio.Scale to fit entirely inside a rectangle, maintaining aspect ratio.Scale to fit the X axis inside a rectangle's X axis, maintaining aspect ratio.Fill an arbitrary rectangle without regard to aspect ratio. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScaleByPixels.Mode
Returns the enum constant of this class with the specified name.static ScaleByPixels.Mode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASPECT_FIT_WIDTH
Scale to fit the X axis inside a rectangle's X axis, maintaining aspect ratio. -
ASPECT_FIT_HEIGHT
Scale to fit the Y axis inside a rectangle's Y axis, maintaining aspect ratio. -
ASPECT_FIT_INSIDE
Scale to fit entirely inside a rectangle, maintaining aspect ratio. -
NON_ASPECT_FILL
Fill an arbitrary rectangle without regard to aspect ratio.
-
-
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
-