|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<BondEnum>
org.proteinshader.structure.enums.BondEnum
public enum BondEnum
Provides an enumeration for molecular bonds. Each BondEnum has a CPK color and a radius for use as convenient defaults when representing a Bond as a cyliner.
| Enum Constant Summary | |
|---|---|
DISULFIDE
CPKColorEnum.SULPHUR_YELLOW, alpha = 1.0, and radius = 0.2. |
|
DOUBLE
CPKColorEnum.LIGHT_GRAY, alpha = 1.0, and radius = 0.2. |
|
HYDROGEN
CPKColorEnum.RED, alpha = 1.0, and radius = 0.2. |
|
PEPTIDE
CPKColorEnum.LIGHT_GRAY, alpha = 1.0, and radius = 0.2. |
|
SINGLE
CPKColorEnum.LIGHT_GRAY, alpha = 1.0, and radius = 0.2. |
|
TRIPLE
CPKColorEnum.LIGHT_GRAY, alpha = 1.0, and radius = 0.2. |
|
| 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. |
double |
getRadius()
Returns a radius that can be used for representing the Bond as a cylinder. |
float |
getRed()
Returns the red component of the RGBA color on a scale from 0.0 to 1.0, inclusive. |
static BondEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BondEnum[] |
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 BondEnum SINGLE
public static final BondEnum DOUBLE
public static final BondEnum TRIPLE
public static final BondEnum PEPTIDE
public static final BondEnum DISULFIDE
public static final BondEnum HYDROGEN
| Method Detail |
|---|
public static final BondEnum[] values()
for(BondEnum c : BondEnum.values())
System.out.println(c);
public static BondEnum 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 double getRadius()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||