public enum ScreenSizeScaleMode extends java.lang.Enum<ScreenSizeScaleMode>
Enum Constant and Description |
---|
INVERSE
Applies inverse scaling to
ScreenSize values. |
LINEAR
Applies the same scale set on the
UiContainer to
ScreenSize values. |
NO_SCALING
No scaling is applied to
ScreenSize values - this is the default
mode. |
Modifier and Type | Method and Description |
---|---|
static ScreenSizeScaleMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScreenSizeScaleMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenSizeScaleMode NO_SCALING
ScreenSize
values - this is the default
mode. For example, if the UiContainer
is
scaled 2x, ScreenSize
values remain at 1x scale.public static final ScreenSizeScaleMode LINEAR
UiContainer
to
ScreenSize
values. For example, if the UiContainer
is
scaled 2x, ScreenSize
values are also scaled 2xpublic static final ScreenSizeScaleMode INVERSE
ScreenSize
values. For example, if the
UiContainer
is scaled x2, then ScreenSize
values are
halved.public static ScreenSizeScaleMode[] values()
for (ScreenSizeScaleMode c : ScreenSizeScaleMode.values()) System.out.println(c);
public static ScreenSizeScaleMode 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 null