fi.paatti.research.paattiapplication.views.eventview
Enum EventTool.NODE_MODES

java.lang.Object
  extended by java.lang.Enum<EventTool.NODE_MODES>
      extended by fi.paatti.research.paattiapplication.views.eventview.EventTool.NODE_MODES
All Implemented Interfaces:
Serializable, Comparable<EventTool.NODE_MODES>
Enclosing class:
EventTool

public static enum EventTool.NODE_MODES
extends Enum<EventTool.NODE_MODES>

The enum that contains the node modes used by the event tool. The mode is checked during a mouse click event that the MouseClickListener added to the canvas registered. Take a look at the TreeViewListener subclass below to see how these modes are being used.

Author:
Tapio Keränen, t.tapio.keranen@student.jyu.fi
 

Enum Constant Summary
ADD_CHILD
           
ADD_NODE
           
MOVE_NODE
           
REMOVE_NODE
           
SELECT_NODE
           
 
Method Summary
static EventTool.NODE_MODES valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EventTool.NODE_MODES[] 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

SELECT_NODE

public static final EventTool.NODE_MODES SELECT_NODE

ADD_CHILD

public static final EventTool.NODE_MODES ADD_CHILD

ADD_NODE

public static final EventTool.NODE_MODES ADD_NODE

MOVE_NODE

public static final EventTool.NODE_MODES MOVE_NODE

REMOVE_NODE

public static final EventTool.NODE_MODES REMOVE_NODE
Method Detail

values

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

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

valueOf

public static EventTool.NODE_MODES 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


Copyright © 2012. All Rights Reserved.