Enum CmsBoxFit.Mode
- java.lang.Object
-
- java.lang.Enum<CmsBoxFit.Mode>
-
- org.opencms.ade.galleries.client.preview.util.CmsBoxFit.Mode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsBoxFit.Mode>
- Enclosing class:
- CmsBoxFit
public static enum CmsBoxFit.Mode extends java.lang.Enum<CmsBoxFit.Mode>
Scale mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description scaleAlways
Always scale.scaleOnlyIfNecessary
Only scale if the rectangle in the target coordinate system does not fit in the source coordinate system.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsBoxFit.Mode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsBoxFit.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
scaleAlways
public static final CmsBoxFit.Mode scaleAlways
Always scale.
-
scaleOnlyIfNecessary
public static final CmsBoxFit.Mode scaleOnlyIfNecessary
Only scale if the rectangle in the target coordinate system does not fit in the source coordinate system.
-
-
Method Detail
-
values
public static CmsBoxFit.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CmsBoxFit.Mode c : CmsBoxFit.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsBoxFit.Mode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-