|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RegionColorEnum> org.proteinshader.structure.enums.RegionColorEnum
public enum RegionColorEnum
PrProvides default colors for regions of protein secondary structure
(alpha-helices, beta-strands and general loop regions).
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 RegionColorEnum.
Enum Constant Summary | |
---|---|
BRIGHT_GREEN
Bright green = (10, 230, 10) will be used for beta-strands. |
|
BRIGHT_RED
Bright red = (230, 10, 10) will be used for alpha-helices. |
|
GRAY
Gray = (128, 128, 128) will be used for loops. |
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 RegionColorEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RegionColorEnum[] |
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 RegionColorEnum GRAY
public static final RegionColorEnum BRIGHT_RED
public static final RegionColorEnum BRIGHT_GREEN
Method Detail |
---|
public static final RegionColorEnum[] values()
for(RegionColorEnum c : RegionColorEnum.values()) System.out.println(c);
public static RegionColorEnum 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 |