public final class ZoomLevel
extends java.lang.Object
"P_"
prefix followed by a number. The number represents a zoom level in
percents. For example, the P_25
and P_110
values represent the 25% and 110% zoom
levels accordingly.Modifier and Type | Field and Description |
---|---|
static ZoomLevel |
P_100 |
static ZoomLevel |
P_110 |
static ZoomLevel |
P_125 |
static ZoomLevel |
P_150 |
static ZoomLevel |
P_175 |
static ZoomLevel |
P_200 |
static ZoomLevel |
P_25 |
static ZoomLevel |
P_250 |
static ZoomLevel |
P_300 |
static ZoomLevel |
P_33 |
static ZoomLevel |
P_400 |
static ZoomLevel |
P_50 |
static ZoomLevel |
P_500 |
static ZoomLevel |
P_67 |
static ZoomLevel |
P_75 |
static ZoomLevel |
P_80 |
static ZoomLevel |
P_90 |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static ZoomLevel |
of(double value)
Returns a
ZoomLevel instance for the given double value. |
java.lang.String |
toString() |
double |
value()
Returns double representation of the current zoom level.
|
static java.util.List<ZoomLevel> |
values()
Returns an immutable list of the pre-defined zoom levels.
|
public static final ZoomLevel P_25
public static final ZoomLevel P_33
public static final ZoomLevel P_50
public static final ZoomLevel P_67
public static final ZoomLevel P_75
public static final ZoomLevel P_80
public static final ZoomLevel P_90
public static final ZoomLevel P_100
public static final ZoomLevel P_110
public static final ZoomLevel P_125
public static final ZoomLevel P_150
public static final ZoomLevel P_175
public static final ZoomLevel P_200
public static final ZoomLevel P_250
public static final ZoomLevel P_300
public static final ZoomLevel P_400
public static final ZoomLevel P_500
public static ZoomLevel of(double value)
ZoomLevel
instance for the given double value.value
- double representation of the zoom level. For 100% zoom level the double value
should be 1.0, for 25% – 0.25, etc. See the P_
zoom level constants.ZoomLevel
instance for the given double valuejava.lang.IllegalArgumentException
- when value
is negativepublic static java.util.List<ZoomLevel> values()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public double value()