org.proteinshader.gui.listeners
Enum CanvasMouseListener.Mode

java.lang.Object
  extended by java.lang.Enum<CanvasMouseListener.Mode>
      extended by org.proteinshader.gui.listeners.CanvasMouseListener.Mode
All Implemented Interfaces:
Serializable, Comparable<CanvasMouseListener.Mode>
Enclosing class:
CanvasMouseListener

public static enum CanvasMouseListener.Mode
extends Enum<CanvasMouseListener.Mode>

The mode controls image rotation and camera movements.


Enum Constant Summary
CAMERA_PAN_XY
          Pan camera in xy-plane.
CAMERA_ZOOM_Z
          Zoom camera along z-axis.
IMAGE_ROTATE_XY
          Rotate image on x-axis and y-axis.
IMAGE_ROTATE_Z
          Rotate image on z-axis.
NO_ACTION
          No action required.
 
Method Summary
static CanvasMouseListener.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CanvasMouseListener.Mode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IMAGE_ROTATE_XY

public static final CanvasMouseListener.Mode IMAGE_ROTATE_XY
Rotate image on x-axis and y-axis.


IMAGE_ROTATE_Z

public static final CanvasMouseListener.Mode IMAGE_ROTATE_Z
Rotate image on z-axis.


CAMERA_PAN_XY

public static final CanvasMouseListener.Mode CAMERA_PAN_XY
Pan camera in xy-plane.


CAMERA_ZOOM_Z

public static final CanvasMouseListener.Mode CAMERA_ZOOM_Z
Zoom camera along z-axis.


NO_ACTION

public static final CanvasMouseListener.Mode NO_ACTION
No action required.

Method Detail

values

public static final CanvasMouseListener.Mode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CanvasMouseListener.Mode c : CanvasMouseListener.Mode.values())
        System.out.println(c);

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

valueOf

public static CanvasMouseListener.Mode 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


Copyright © 2007-2008