com.oziexplorer
Enum MapClickType
java.lang.Object
java.lang.Enum<MapClickType>
com.oziexplorer.MapClickType
- All Implemented Interfaces:
- Serializable, Comparable<MapClickType>
public enum MapClickType
- extends Enum<MapClickType>
Enumeration of the different types of map click events - single or double.
Copyright 2011 Alan Burlison, . All rights reserved.
Use is subject to license terms, see
LICENSE.txt.
Enum Constant Summary |
DOUBLE
Double clicks. |
SINGLE
Single clicks. |
Method Summary |
String |
getType()
Retrieve the string type of the click event. |
String |
toString()
Retrieve a string representation of the click type. |
static MapClickType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MapClickType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
SINGLE
public static final MapClickType SINGLE
- Single clicks.
DOUBLE
public static final MapClickType DOUBLE
- Double clicks.
values
public static MapClickType[] 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 (MapClickType c : MapClickType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MapClickType valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getType
public String getType()
- Retrieve the string type of the click event.
- Returns:
- the string type of the click event
toString
public String toString()
- Retrieve a string representation of the click type.
- Overrides:
toString
in class Enum<MapClickType>
- Returns:
- a string representation of the click type