org.jmol.constant
Enum EnumPalette

java.lang.Object
  extended by java.lang.Enum<EnumPalette>
      extended by org.jmol.constant.EnumPalette
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EnumPalette>

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

Enum for animation mode.


Enum Constant Summary
ALTLOC
           
AMINO
           
CHAIN
           
CPK
           
ENERGY
           
FIXEDTEMP
           
FORMAL_CHARGE
           
GROUP
           
INSERTION
           
JMOL
           
MOLECULE
           
MONOMER
           
NONE
           
PARTIAL_CHARGE
           
POLYMER
           
PROPERTY
           
RASMOL
           
SHAPELY
           
STRAIGHTNESS
           
STRUCTURE
           
SURFACE
           
TEMP
           
TYPE
           
UNKNOWN
           
VARIABLE
           
 
Field Summary
static int[] argbsCpk
          Default table of CPK atom colors.
static int[] argbsCpkRasmol
           
 byte id
           
private  java.lang.String name
           
 
Method Summary
static EnumPalette getPalette(java.lang.String paletteName)
           
static byte getPaletteID(java.lang.String paletteName)
           
static java.lang.String getPaletteName(byte pid)
           
static boolean isPaletteVariable(byte pid)
           
static byte pidOf(java.lang.Object value)
           
static EnumPalette valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumPalette[] 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

UNKNOWN

public static final EnumPalette UNKNOWN

NONE

public static final EnumPalette NONE

CPK

public static final EnumPalette CPK

PARTIAL_CHARGE

public static final EnumPalette PARTIAL_CHARGE

FORMAL_CHARGE

public static final EnumPalette FORMAL_CHARGE

TEMP

public static final EnumPalette TEMP

FIXEDTEMP

public static final EnumPalette FIXEDTEMP

SURFACE

public static final EnumPalette SURFACE

STRUCTURE

public static final EnumPalette STRUCTURE

AMINO

public static final EnumPalette AMINO

SHAPELY

public static final EnumPalette SHAPELY

CHAIN

public static final EnumPalette CHAIN

GROUP

public static final EnumPalette GROUP

MONOMER

public static final EnumPalette MONOMER

MOLECULE

public static final EnumPalette MOLECULE

ALTLOC

public static final EnumPalette ALTLOC

INSERTION

public static final EnumPalette INSERTION

JMOL

public static final EnumPalette JMOL

RASMOL

public static final EnumPalette RASMOL

TYPE

public static final EnumPalette TYPE

ENERGY

public static final EnumPalette ENERGY

PROPERTY

public static final EnumPalette PROPERTY

VARIABLE

public static final EnumPalette VARIABLE

STRAIGHTNESS

public static final EnumPalette STRAIGHTNESS

POLYMER

public static final EnumPalette POLYMER
Field Detail

name

private java.lang.String name

id

public byte id

argbsCpkRasmol

public static final int[] argbsCpkRasmol

argbsCpk

public static final int[] argbsCpk
Default table of CPK atom colors. ghemical colors with a few modifications

Method Detail

values

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

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

valueOf

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

pidOf

public static byte pidOf(java.lang.Object value)

isPaletteVariable

public static boolean isPaletteVariable(byte pid)

getPalette

public static EnumPalette getPalette(java.lang.String paletteName)

getPaletteID

public static final byte getPaletteID(java.lang.String paletteName)

getPaletteName

public static final java.lang.String getPaletteName(byte pid)