camera3d
Class TransformMode

java.lang.Object
  extended bycamera3d.TransformMode

public class TransformMode
extends java.lang.Object

Defines the modes of tranformations allowed. It is an implementation of the typesafe enumeration design pattern.

Version:
1.0
Author:
Fábio Roberto de Miranda, Carlos da Silva dos Santos

Field Summary
static TransformMode ABSOLUTE
          Absolute transformation mode
static TransformMode RELATIVE
          Relative transformation mode
 
Method Summary
static TransformMode modeForString(java.lang.String name)
          Returns the TransformMode correspondent to the input name.
 java.lang.String toString()
          Returns a String identifying the transformation mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RELATIVE

public static final TransformMode RELATIVE
Relative transformation mode


ABSOLUTE

public static final TransformMode ABSOLUTE
Absolute transformation mode

Method Detail

toString

public java.lang.String toString()
Returns a String identifying the transformation mode.


modeForString

public static TransformMode modeForString(java.lang.String name)
Returns the TransformMode correspondent to the input name. The valid name of one TransformMode instance is retrieved by calling the toString() method on that instance.

Parameters:
name - Name of desired mode.
Throws:
java.lang.IllegalArgumentException - if name is not a valid name of any TransformMode.


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.