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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic ImageCell.ScaleModeReturns 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- 
NONEThe image is displayed in its original size.
- 
FITThe image is scaled to the maximum size that fits into the cell. The aspect ratio is preserved.
- 
FILLThe image is scaled to the minimum size required to cover the entire cell. The aspect ratio is preserved.
- 
STRETCHThe image is scaled to the exact bounds of the cell. The aspect ratio is not preserved.
 
- 
- 
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
 
 
-