|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<OrientationEnum> org.proteinshader.gui.enums.OrientationEnum
public enum OrientationEnum
Provides a general orientation enumeration.
This enum is used by the Renderer for positioning an image and by the
SpringLoadedJFrame for specifying whether it should be attached to its
parent frame at the top, bottom, left, or right.
Enum Constant Summary | |
---|---|
BACK
The menu name for this enum is "Back". |
|
BOTTOM
The menu name for this enum is "Bottom". |
|
FRONT
The menu name for this enum is "Front". |
|
LEFT
The menu name for this enum is "Left". |
|
ORIGINAL
The menu name for this enum is "Original". |
|
RIGHT
The menu name for this enum is "Right". |
|
TOP
The menu name for this enum is "Top". |
Method Summary | |
---|---|
String |
getMenuName()
Returns the name of the OrientationEnum in a form suitable for use in a menu. |
String |
toString()
Returns the name of the OrientationEnum in a form suitable for use in a menu. |
static OrientationEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OrientationEnum |
valueOfMenuName(String menuName)
Returns the OrientationEnum with the same menu name as the String given as an argument. |
static OrientationEnum[] |
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 OrientationEnum ORIGINAL
public static final OrientationEnum FRONT
public static final OrientationEnum BACK
public static final OrientationEnum LEFT
public static final OrientationEnum RIGHT
public static final OrientationEnum TOP
public static final OrientationEnum BOTTOM
Method Detail |
---|
public static final OrientationEnum[] values()
for(OrientationEnum c : OrientationEnum.values()) System.out.println(c);
public static OrientationEnum 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 String getMenuName()
public String toString()
toString
in class Enum<OrientationEnum>
public static OrientationEnum valueOfMenuName(String menuName)
IllegalArgumentException
- if the menu name does not match
an OrientationEnum.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |