org.proteinshader.structure.enums
Enum AminoAcidEnum

java.lang.Object
  extended by java.lang.Enum<AminoAcidEnum>
      extended by org.proteinshader.structure.enums.AminoAcidEnum
All Implemented Interfaces:
Serializable, Comparable<AminoAcidEnum>

public enum AminoAcidEnum
extends Enum<AminoAcidEnum>

Provides an enumeration of the amino acids found in protein.

An AminoAcidEnum can be used to obtain a String with the full name of the amino acid, its 3-letter code, or its 1-letter code.


Enum Constant Summary
ALA
          Alanine (A) is dark-gray.
ARG
          Arginine (R) is blue.
ASN
          Asparagine (N) is cyan.
ASP
          Aspartic Acid (D) is bright-red.
ASX
          ASP/ASN ambiguous (B) uses bright-red for ASP.
CYS
          Cysteine (C) is yellow.
GLN
          Glutamine (Q) is cyan.
GLU
          Glutamic Acid (E) is bright-red.
GLX
          GLU/GLN ambiguous (Z) uses bright-red for GLU.
GLY
          Glycine (G) is light-gray.
HIS
          Histidine (H) is pale-blue.
ILE
          Isoleucine (I) is green.
LEU
          Leucine (L) is green.
LYS
          Lysine (K) is blue.
MET
          Methionine (M) is yellow.
PHE
          Phenylalanine (F) is mid-blue.
PRO
          Proline (P) is peach.
SER
          Serine (S) is orange.
THR
          Threonine (T) is orange.
TRP
          Tryptophan (W) is pink.
TYR
          Tyrosine (Y) is mid-blue.
UNK
          Unknown (X) is black.
VAL
          Valine (V) is green.
 
Method Summary
 float getAlpha()
          Returns the alpha component of the RGBA color on a scale from 0.0 to 1.0, inclusive.
 float getBlue()
          Returns the blue component of the RGBA color on a scale from 0.0 to 1.0, inclusive.
 String getFullName()
          Returns the full name of the amino acid.
 float getGreen()
          Returns the green component of the RGBA color on a scale from 0.0 to 1.0, inclusive.
 String getOneLetterCode()
          Returns the one-letter code for the amino acid.
 float getRed()
          Returns the red component of the RGBA color on a scale from 0.0 to 1.0, inclusive.
 String getThreeLetterCode()
          Returns the three-letter code for the amino acid.
static AminoAcidEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AminoAcidEnum[] 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

ALA

public static final AminoAcidEnum ALA
Alanine (A) is dark-gray.


ARG

public static final AminoAcidEnum ARG
Arginine (R) is blue.


ASN

public static final AminoAcidEnum ASN
Asparagine (N) is cyan.


ASP

public static final AminoAcidEnum ASP
Aspartic Acid (D) is bright-red.


ASX

public static final AminoAcidEnum ASX
ASP/ASN ambiguous (B) uses bright-red for ASP.


CYS

public static final AminoAcidEnum CYS
Cysteine (C) is yellow.


GLN

public static final AminoAcidEnum GLN
Glutamine (Q) is cyan.


GLU

public static final AminoAcidEnum GLU
Glutamic Acid (E) is bright-red.


GLX

public static final AminoAcidEnum GLX
GLU/GLN ambiguous (Z) uses bright-red for GLU.


GLY

public static final AminoAcidEnum GLY
Glycine (G) is light-gray.


HIS

public static final AminoAcidEnum HIS
Histidine (H) is pale-blue.


ILE

public static final AminoAcidEnum ILE
Isoleucine (I) is green.


LEU

public static final AminoAcidEnum LEU
Leucine (L) is green.


LYS

public static final AminoAcidEnum LYS
Lysine (K) is blue.


MET

public static final AminoAcidEnum MET
Methionine (M) is yellow.


PHE

public static final AminoAcidEnum PHE
Phenylalanine (F) is mid-blue.


PRO

public static final AminoAcidEnum PRO
Proline (P) is peach.


SER

public static final AminoAcidEnum SER
Serine (S) is orange.


THR

public static final AminoAcidEnum THR
Threonine (T) is orange.


TRP

public static final AminoAcidEnum TRP
Tryptophan (W) is pink.


TYR

public static final AminoAcidEnum TYR
Tyrosine (Y) is mid-blue.


UNK

public static final AminoAcidEnum UNK
Unknown (X) is black.


VAL

public static final AminoAcidEnum VAL
Valine (V) is green.

Method Detail

values

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

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

valueOf

public static AminoAcidEnum valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

getFullName

public String getFullName()
Returns the full name of the amino acid. The first letter is in uppercase while the rest of the letters are in lowercase (e.g., Alanine).

Returns:
The full amino acid name as a String.

getThreeLetterCode

public String getThreeLetterCode()
Returns the three-letter code for the amino acid. The code is in lowercase letters. The toString() method will give the three-letter code in uppercase letters.

Returns:
The three-letter amino acid code as a String.

getOneLetterCode

public String getOneLetterCode()
Returns the one-letter code for the amino acid. The letter is uppercase.

Returns:
The one-letter amino acid code as a String.

getRed

public float getRed()
Returns the red component of the RGBA color on a scale from 0.0 to 1.0, inclusive.

Returns:
The red value as a float.

getGreen

public float getGreen()
Returns the green component of the RGBA color on a scale from 0.0 to 1.0, inclusive.

Returns:
The green value as a float.

getBlue

public float getBlue()
Returns the blue component of the RGBA color on a scale from 0.0 to 1.0, inclusive.

Returns:
The blue value as a float.

getAlpha

public float getAlpha()
Returns the alpha component of the RGBA color on a scale from 0.0 to 1.0, inclusive.

Returns:
The alpha value as a float.


Copyright © 2007-2008