Enum ImageAspectRatio
- java.lang.Object
-
- java.lang.Enum<ImageAspectRatio>
-
- com.jalios.jcms.uicomponent.image.ImageAspectRatio
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ImageAspectRatio>
public enum ImageAspectRatio extends java.lang.Enum<ImageAspectRatio>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
double
getValue()
static ImageAspectRatio
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ImageAspectRatio[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORIGINAL
public static final ImageAspectRatio ORIGINAL
-
SQUARE
public static final ImageAspectRatio SQUARE
-
BANNER
public static final ImageAspectRatio BANNER
-
SIZE_5_4
public static final ImageAspectRatio SIZE_5_4
-
SIZE_4_3
public static final ImageAspectRatio SIZE_4_3
-
SIZE_6_4
public static final ImageAspectRatio SIZE_6_4
-
SIZE_16_9
public static final ImageAspectRatio SIZE_16_9
-
-
Method Detail
-
values
public static ImageAspectRatio[] 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 (ImageAspectRatio c : ImageAspectRatio.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageAspectRatio 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
-
getName
public java.lang.String getName()
-
getValue
public double getValue()
-
-