Package org.eclipse.rap.rwt.template
Enum Class ImageCell.ScaleMode
- All Implemented Interfaces:
Serializable
,Comparable<ImageCell.ScaleMode>
,Constable
- Enclosing class:
- ImageCell
Represents a method used to scale an image.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageCell.ScaleMode
Returns the enum constant of this class with the specified name.static ImageCell.ScaleMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The image is displayed in its original size. -
FIT
The image is scaled to the maximum size that fits into the cell. The aspect ratio is preserved. -
FILL
The image is scaled to the minimum size required to cover the entire cell. The aspect ratio is preserved. -
STRETCH
The image is scaled to the exact bounds of the cell. The aspect ratio is not preserved.
-
-
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
-