com.mebigfatguy.pixelle.utils
Enum ZoomLevel
java.lang.Object
java.lang.Enum<ZoomLevel>
com.mebigfatguy.pixelle.utils.ZoomLevel
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ZoomLevel>
public enum ZoomLevel
- extends java.lang.Enum<ZoomLevel>
Method Summary |
java.lang.String |
getKey()
|
double |
getZoom()
|
static ZoomLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ZoomLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
OneEighth
public static final ZoomLevel OneEighth
OneFourth
public static final ZoomLevel OneFourth
OneHalf
public static final ZoomLevel OneHalf
FullSize
public static final ZoomLevel FullSize
Double
public static final ZoomLevel Double
FourTimes
public static final ZoomLevel FourTimes
EightTimes
public static final ZoomLevel EightTimes
FitToWindow
public static final ZoomLevel FitToWindow
values
public static ZoomLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ZoomLevel c : ZoomLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ZoomLevel valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getZoom
public double getZoom()
getKey
public java.lang.String getKey()
Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.