schmitzm.geotools.gui
Enum MouseSelectionTracker.SelectionMode

java.lang.Object
  extended by java.lang.Enum<MouseSelectionTracker.SelectionMode>
      extended by schmitzm.geotools.gui.MouseSelectionTracker.SelectionMode
All Implemented Interfaces:
Serializable, Comparable<MouseSelectionTracker.SelectionMode>
Enclosing class:
MouseSelectionTracker

public static enum MouseSelectionTracker.SelectionMode
extends Enum<MouseSelectionTracker.SelectionMode>

Selection events the tracker reacts on.


Enum Constant Summary
ALL
          Tracker reacts on single clicks as well as on window selections.
ONLY_SINGLE_CLICK
          Tracker reacts only on single clicks.
ONLY_WINDOW_SELECTION
          Tracker reacts only on window selection.
 
Method Summary
static MouseSelectionTracker.SelectionMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MouseSelectionTracker.SelectionMode[] 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
 

Enum Constant Detail

ALL

public static final MouseSelectionTracker.SelectionMode ALL
Tracker reacts on single clicks as well as on window selections.


ONLY_SINGLE_CLICK

public static final MouseSelectionTracker.SelectionMode ONLY_SINGLE_CLICK
Tracker reacts only on single clicks. Window selections are ignored.


ONLY_WINDOW_SELECTION

public static final MouseSelectionTracker.SelectionMode ONLY_WINDOW_SELECTION
Tracker reacts only on window selection. Single clicks are ignored.

Method Detail

values

public static MouseSelectionTracker.SelectionMode[] 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 (MouseSelectionTracker.SelectionMode c : MouseSelectionTracker.SelectionMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MouseSelectionTracker.SelectionMode 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