com.oziexplorer
Enum ObjectClickType
java.lang.Object
java.lang.Enum<ObjectClickType>
com.oziexplorer.ObjectClickType
- All Implemented Interfaces:
- Serializable, Comparable<ObjectClickType>
public enum ObjectClickType
- extends Enum<ObjectClickType>
Enumeration of the different types of object click events.
Copyright 2011 Alan Burlison, . All rights reserved.
Use is subject to license terms, see
LICENSE.txt.
Method Summary |
String |
getType()
Retrieve the string type of the click event. |
String |
toString()
Retrieve a string representation of the click type. |
static ObjectClickType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ObjectClickType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
WAYPOINT
public static final ObjectClickType WAYPOINT
- Click on a waypoint.
EVENT
public static final ObjectClickType EVENT
- Click on an event.
MAP_FEATURE
public static final ObjectClickType MAP_FEATURE
- Click on a map feature.
MAP_COMMENT
public static final ObjectClickType MAP_COMMENT
- Click on a map comment.
ACTIVE_TRACKPOINT
public static final ObjectClickType ACTIVE_TRACKPOINT
- Click on an active track point.
ACTIVE_POINT
public static final ObjectClickType ACTIVE_POINT
- Click on an active point.
values
public static ObjectClickType[] 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 (ObjectClickType c : ObjectClickType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ObjectClickType 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<ObjectClickType>
- Returns:
- a string representation of the click type