public enum AspectRatio extends java.lang.Enum<AspectRatio>
Enum Constant and Description |
---|
Ratio_1_1
The aspect ratio 1:1
|
Ratio_14_9
The aspect ratio 14:9
|
Ratio_16_10
The aspect ratio 16:10
|
Ratio_16_9
The aspect ratio 16:9
|
Ratio_2_35_1
The aspect ratio 2.35:1
|
Ratio_4_3
The aspect ratio 4:3
|
Unknown
This means the ratio is not known
|
Modifier and Type | Method and Description |
---|---|
static AspectRatio |
fromRatio(double ratio)
Used to find the ratio from it's decimal value
|
static AspectRatio |
fromString(java.lang.String ratio)
Used to find the ratio from it's string description value
|
java.lang.String |
getDescription()
Used to get the ratio as a string
|
double |
getValue()
Used to get the ratio as a decimal value
|
boolean |
isWideScreen()
Returns true if the aspect ratio is wide screen
|
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 Ratio_1_1
public static final AspectRatio Ratio_16_9
public static final AspectRatio Ratio_16_10
public static final AspectRatio Ratio_14_9
public static final AspectRatio Ratio_2_35_1
public static final AspectRatio Ratio_4_3
public static final AspectRatio Unknown
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 boolean isWideScreen()
public java.lang.String getDescription()
public double getValue()
public static AspectRatio fromRatio(double ratio)
ratio
- The decimal value of the ratiopublic static AspectRatio fromString(java.lang.String ratio)
ratio
- The string description value of the ratio