public enum ZoomUnit extends java.lang.Enum<ZoomUnit> implements INativeEnum
| Enum Constant and Description |
|---|
LargeDecrement
Decrease zoom by a large decrement.
|
LargeIncrement
Increase zoom by a large increment.
|
NoAmount
No increase or decrease in zoom.
|
SmallDecrement
Decrease zoom by a small decrement.
|
SmallIncrement
Increase zoom by a small increment.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<ZoomUnit> |
fromNativeValue(int nativeValue) |
java.lang.String |
getConstantName() |
int |
getNativeValue() |
static ZoomUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZoomUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZoomUnit NoAmount
public static final ZoomUnit LargeDecrement
public static final ZoomUnit SmallDecrement
public static final ZoomUnit LargeIncrement
public static final ZoomUnit SmallIncrement
public static ZoomUnit[] values()
for (ZoomUnit c : ZoomUnit.values()) System.out.println(c);
public static ZoomUnit 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 int getNativeValue()
getNativeValue in interface INativeEnumpublic java.lang.String getConstantName()
getConstantName in interface INativeEnumpublic static java.util.Optional<ZoomUnit> fromNativeValue(int nativeValue)