com.xinapse.multisliceimage.roi
Enum InteractionType

java.lang.Object
  extended by java.lang.Enum<InteractionType>
      extended by com.xinapse.multisliceimage.roi.InteractionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<InteractionType>

public enum InteractionType
extends java.lang.Enum<InteractionType>

This Class represents the different ways in which a user can interact with an ROI.


Enum Constant Summary
CLICK
          InteractionType for a single click interation.
CLICK_DRAG
          InteractionType for a click, hold and drag interaction.
CLICK_OUTLINE
          InteractionType for a click points/draw interaction.
CLICK_TYPE
          InteractionType for a click, type, press return interaction.
ERASE
          InteractionType for draw-to-erase interaction.
NONE
          InteractionType for no interaction.
PUSH
          InteractionType for a push interaction.
 
Method Summary
 java.lang.String toString()
          Returns a string describing this type of interaction.
static InteractionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static InteractionType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final InteractionType NONE
InteractionType for no interaction.


CLICK

public static final InteractionType CLICK
InteractionType for a single click interation.


CLICK_TYPE

public static final InteractionType CLICK_TYPE
InteractionType for a click, type, press return interaction.


CLICK_DRAG

public static final InteractionType CLICK_DRAG
InteractionType for a click, hold and drag interaction.


CLICK_OUTLINE

public static final InteractionType CLICK_OUTLINE
InteractionType for a click points/draw interaction.


ERASE

public static final InteractionType ERASE
InteractionType for draw-to-erase interaction.


PUSH

public static final InteractionType PUSH
InteractionType for a push interaction.

Method Detail

values

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

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

valueOf

public static InteractionType 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

toString

public java.lang.String toString()
Returns a string describing this type of interaction.

Overrides:
toString in class java.lang.Enum<InteractionType>
Returns:
a string describing this type of interaction.


Copyright 2006-2008 Xinapse Systems Limited. All Rights Reserved.