org.jmol.constant
Enum EnumStructure
java.lang.Object
java.lang.Enum<EnumStructure>
org.jmol.constant.EnumStructure
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EnumStructure>
public enum EnumStructure
- extends java.lang.Enum<EnumStructure>
Field Summary |
private int |
color
|
private int |
id
|
private java.lang.String |
name
|
Method Summary |
java.lang.String |
getBioStructureTypeName(boolean isGeneric)
|
int |
getColor()
|
int |
getId()
|
java.lang.String |
getName()
|
static EnumStructure |
getProteinStructureType(java.lang.String name)
In DRuMS, RasMol, and Chime, quoting from
http://www.umass.edu/microbio/rasmol/rascolor.htm
The RasMol structure color scheme colors the molecule by
protein secondary structure. |
private boolean |
isProtein()
|
static EnumStructure |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EnumStructure[] |
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 |
NOT
public static final EnumStructure NOT
NONE
public static final EnumStructure NONE
TURN
public static final EnumStructure TURN
SHEET
public static final EnumStructure SHEET
HELIX
public static final EnumStructure HELIX
DNA
public static final EnumStructure DNA
RNA
public static final EnumStructure RNA
CARBOHYDRATE
public static final EnumStructure CARBOHYDRATE
HELIX_310
public static final EnumStructure HELIX_310
HELIX_ALPHA
public static final EnumStructure HELIX_ALPHA
HELIX_PI
public static final EnumStructure HELIX_PI
id
private int id
name
private java.lang.String name
color
private int color
values
public static EnumStructure[] 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 (EnumStructure c : EnumStructure.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EnumStructure 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
getId
public int getId()
getName
public java.lang.String getName()
getColor
public int getColor()
getProteinStructureType
public static final EnumStructure getProteinStructureType(java.lang.String name)
- In DRuMS, RasMol, and Chime, quoting from
http://www.umass.edu/microbio/rasmol/rascolor.htm
The RasMol structure color scheme colors the molecule by
protein secondary structure.
Structure Decimal RGB Hex RGB
Alpha helices red-magenta [255,0,128] FF 00 80 *
Beta strands yellow [255,200,0] FF C8 00 *
Turns pale blue [96,128,255] 60 80 FF
Other white [255,255,255] FF FF FF
Values given in the 1994 RasMol 2.5 Quick Reference Card ([240,0,128]
and [255,255,0]) are not correct for RasMol 2.6-beta-2a.
This correction was made above on Dec 5, 1998.
- Parameters:
name
-
- Returns:
- 0-3 or 7-9, but not dna, rna, carbohydrate
getBioStructureTypeName
public java.lang.String getBioStructureTypeName(boolean isGeneric)
isProtein
private boolean isProtein()