public enum AspectRatio extends Enum<AspectRatio>
Enum Constant and Description |
---|
FREE_RATIO |
RATIO_16_9 |
RATIO_2_1 |
RATIO_3_2 |
RATIO_4_3 |
SQUARE_RATIO |
VIEW_3D_RATIO |
Modifier and Type | Method and Description |
---|---|
Float |
getValue()
Returns the value of this aspect ratio (width / height) or
null if it's not known. |
static AspectRatio |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AspectRatio[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AspectRatio FREE_RATIO
public static final AspectRatio VIEW_3D_RATIO
public static final AspectRatio RATIO_4_3
public static final AspectRatio RATIO_3_2
public static final AspectRatio RATIO_16_9
public static final AspectRatio RATIO_2_1
public static final AspectRatio SQUARE_RATIO
public static AspectRatio[] values()
for (AspectRatio c : AspectRatio.values()) System.out.println(c);
public static AspectRatio valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Float getValue()
null
if it's not known.
© Copyrights 2006-2015 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License