public enum DerivedScaleType extends java.lang.Enum<DerivedScaleType>
ScaleType
scale factors. Used for convenience.Enum Constant and Description |
---|
DEV_SCALE
The device scale factor.
|
EFF_USR_SCALE
The effective user scale factor "combines" all the user space scale factors which are:
USR_SCALE and OBJ_SCALE . |
PIX_SCALE
The pixel scale factor "combines" all the other scale factors (user, system and object) and defines the
effective scale of a particular UI object.
|
Modifier and Type | Method and Description |
---|---|
static DerivedScaleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DerivedScaleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DerivedScaleType EFF_USR_SCALE
USR_SCALE
and OBJ_SCALE
.
So, basically it equals USR_SCALE
* OBJ_SCALE
.public static final DerivedScaleType DEV_SCALE
ScaleType.SYS_SCALE
, in IDE-HiDPI mode equals 1.0
(in IDE-HiDPI the user space and the device space are equal and so the transform b/w the spaces is 1.0)public static final DerivedScaleType PIX_SCALE
EFF_USR_SCALE
.public static DerivedScaleType[] values()
for (DerivedScaleType c : DerivedScaleType.values()) System.out.println(c);
public static DerivedScaleType 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