|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<StyleEnum> org.proteinshader.gui.enums.StyleEnum
public enum StyleEnum
Provides an enumeration to specify what style should be used to display a Structure: Cartoon (Tubes and Ribbons) or Atom (Spheres and Cylinders).
Enum Constant Summary | |
---|---|
BALLS_AND_STICKS
Show the molecule using a balls-and-sticks representation. |
|
FRENET_FRAMES
Show the local coordinate frames of the tube segments. |
|
RIBBONS
Show the molecule as three-dimensional ribbons. |
|
RIBBONS_AND_TUBES
Show the molecule as three-dimensional ribbons (beta-strands) and tubes (alpha-helices). |
|
SPACE_FILLING
Show the molecule using space filling representation (spheres only). |
|
STICKS
Show the molecule using sticks (thin cylinders) only. |
|
TUBES
Show the molecule as three-dimensional tubes. |
Method Summary | |
---|---|
static StyleEnum |
getDefaultStyle()
Returns the default style, which is BALLS_AND_STICKS. |
String |
getMenuName()
Returns the name of the StyleEnum in a form suitable for use in a menu. |
String |
toString()
Returns the name of the StyleEnum in a form suitable for use in a menu. |
static StyleEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StyleEnum |
valueOfMenuName(String menuName)
Returns the StyleEnum with the same menu name as the String given as an argument. |
static StyleEnum[] |
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 StyleEnum TUBES
public static final StyleEnum RIBBONS
public static final StyleEnum RIBBONS_AND_TUBES
public static final StyleEnum FRENET_FRAMES
public static final StyleEnum SPACE_FILLING
public static final StyleEnum BALLS_AND_STICKS
public static final StyleEnum STICKS
Method Detail |
---|
public static final StyleEnum[] values()
for(StyleEnum c : StyleEnum.values()) System.out.println(c);
public static StyleEnum 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 static StyleEnum getDefaultStyle()
public String getMenuName()
public String toString()
toString
in class Enum<StyleEnum>
public static StyleEnum valueOfMenuName(String menuName)
IllegalArgumentException
- if the menu name does not match a
StyleEnum.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |