cct.cprocessor
Enum Commands

java.lang.Object
  extended by java.lang.Enum<Commands>
      extended by cct.cprocessor.Commands
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Commands>

 enum Commands
extends java.lang.Enum<Commands>

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2007

Company: ANU


Enum Constant Summary
A
           
ADD
           
C
           
CENTER
           
D
           
DEL
           
DELETE
           
E
           
ERASE
           
RENDER
           
S
           
SEL
           
SELECT
           
SLEEP
           
 
Method Summary
 Commands getCommand(java.lang.String command)
           
 boolean isValidCommand(java.lang.String command)
           
static Commands valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Commands[] 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

A

public static final Commands A

ADD

public static final Commands ADD

S

public static final Commands S

SEL

public static final Commands SEL

SELECT

public static final Commands SELECT

D

public static final Commands D

DEL

public static final Commands DEL

DELETE

public static final Commands DELETE

E

public static final Commands E

ERASE

public static final Commands ERASE

C

public static final Commands C

CENTER

public static final Commands CENTER

SLEEP

public static final Commands SLEEP

RENDER

public static final Commands RENDER
Method Detail

values

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

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

valueOf

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

isValidCommand

public boolean isValidCommand(java.lang.String command)

getCommand

public Commands getCommand(java.lang.String command)