public enum AspectRatio extends java.lang.Enum<AspectRatio>
Enum Constant and Description |
---|
FREE_RATIO |
RATIO_16_9 |
RATIO_2_1 |
RATIO_24_10 |
RATIO_3_2 |
RATIO_4_3 |
SQUARE_RATIO |
VIEW_3D_RATIO |
Modifier and Type | Method and Description |
---|---|
java.lang.Float |
getValue()
Returns the value of this aspect ratio (width / height) or
null if it's not known. |
static AspectRatio |
valueOf(java.lang.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 RATIO_24_10
public static final AspectRatio SQUARE_RATIO
public static AspectRatio[] values()
for (AspectRatio c : AspectRatio.values()) System.out.println(c);
public static AspectRatio valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Float getValue()
null
if it's not known.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License