|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RegionEnum> org.proteinshader.structure.enums.RegionEnum
public enum RegionEnum
Provides a Region type enumeration (Loop, Helix,
or BetaStrand) useful for marking AminoAcids.
This enumeration was added because AminoAcids are marked with a
regionID (to note what region of secondary structure they belong to),
but there is no guarantee in the PDB specification that a helix ID has
to be different than a beta-strand ID. For example, a helix ID might
be just the digit "1", and a beta-strand ID might also be just "1".
Therefore, marking an AminoAcid with a regionID is not enough. It is
also a good idea to mark it with the type of region it belongs to.
Enum Constant Summary | |
---|---|
BETA_STRAND
Beta-strands will be green by default. |
|
HELIX
Alpha-helices will be goldenrod by default. |
|
LOOP
Loops will be gray by default. |
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. |
float |
getGreen()
Returns the green component of the RGBA color on a scale from 0.0 to 1.0, inclusive. |
String |
getMenuName()
Returns the menu name for the Region. |
float |
getRed()
Returns the red component of the RGBA color on a scale from 0.0 to 1.0, inclusive. |
String |
toString()
Returns the menu name for the Region. |
static RegionEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RegionEnum[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RegionEnum LOOP
public static final RegionEnum HELIX
public static final RegionEnum BETA_STRAND
Method Detail |
---|
public static final RegionEnum[] values()
for(RegionEnum c : RegionEnum.values()) System.out.println(c);
public static RegionEnum 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()
public float getAlpha()
public String getMenuName()
public String toString()
toString
in class Enum<RegionEnum>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |