|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AAColorEnum> org.proteinshader.structure.enums.AAColorEnum
public enum AAColorEnum
Provides an enumeration of an amino acid color scheme.
The amino acid color scheme used here was found at:
http://life.nthu.edu.tw/~fmhsu/rasframe/COLORS.HTM
This color scheme is used by RasMol and is based on the amino acid
color scheme used in Bob Fletterick's "Shapely Models".
The RGB values are shown below on a 0 to 255 scale, but they are
converted to floats on a scale from 0.0 to 1.0 by the private
constructor for AAColorEnum.
Enum Constant Summary | |
---|---|
BLACK
RGB = (0, 0, 0) for unknown. |
|
BLUE
RGB = (20, 90, 255) for LYS and ARG. |
|
BRIGHT_RED
RGB = (230, 10, 10) for ASP and GLU. |
|
CYAN
RGB = (0, 220, 220) for ASN and GLN. |
|
DARK_GRAY
RGB = (200, 200, 200) for ALA. |
|
GREEN
RGB = (15, 130, 15) for LEU, VAL, and ILE. |
|
LIGHT_GRAY
RGB = (235, 235, 235) for GLY. |
|
MID_BLUE
RGB = (50, 50, 170) for PHE and TYR. |
|
ORANGE
RGB = (250, 150, 0) for SER and THR. |
|
PALE_BLUE
RGB = (130, 130, 210) for HIS. |
|
PEACH
RGB = (220, 150, 130) for PRO. |
|
PINK
RGB = (180, 90, 180) for TRP. |
|
YELLOW
RGB = (230, 230, 0) for CYS and MET. |
Method Summary | |
---|---|
float |
getBlue()
Returns the blue component of the RGBA color as a float in the range from 0.0 to 1.0, inclusive. |
float |
getGreen()
Returns the green component of the RGBA color as a float in the range from 0.0 to 1.0, inclusive. |
float |
getRed()
Returns the red component of the RGBA color as a float in the range from 0.0 to 1.0, inclusive. |
static AAColorEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AAColorEnum[] |
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 |
---|
public static final AAColorEnum BRIGHT_RED
public static final AAColorEnum YELLOW
public static final AAColorEnum BLUE
public static final AAColorEnum ORANGE
public static final AAColorEnum MID_BLUE
public static final AAColorEnum CYAN
public static final AAColorEnum LIGHT_GRAY
public static final AAColorEnum GREEN
public static final AAColorEnum DARK_GRAY
public static final AAColorEnum PINK
public static final AAColorEnum PALE_BLUE
public static final AAColorEnum PEACH
public static final AAColorEnum BLACK
Method Detail |
---|
public static final AAColorEnum[] values()
for(AAColorEnum c : AAColorEnum.values()) System.out.println(c);
public static AAColorEnum valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic float getRed()
public float getGreen()
public float getBlue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |