|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ImageFormatEnum> org.proteinshader.gui.enums.ImageFormatEnum
public enum ImageFormatEnum
Provides an enumeration of the image file formats.
This enum is used by the FileMenu, FileMenuListenerFactory,
SaveImageFileChooser, and ScreenShot classes.
Enum Constant Summary | |
---|---|
GIF
The GIF extension is a dot followed by 'gif'. |
|
INVISIBLE_CANVAS_PNG
The Invisible Canvas PNG extension is a dot followed by 'png'. |
|
JPEG
The JPEG extension is a dot followed by 'jpg'. |
|
PNG
The PNG extension is a dot followed by 'png'. |
Method Summary | |
---|---|
String |
getExtension()
Returns the file extension for this image format. |
String |
getMenuName()
Returns the name of the ImageFormatEnum in a form suitable for use in a menu. |
String |
getSaveTitle()
Returns the a title suitable for use with a save-type file chooser. |
String |
getShortName()
Returns the short standard name of the ImageFormatEnum (usually 3 letters). |
String |
toString()
Returns the name of the ImageFormatEnum in a form suitable for use in a menu. |
static ImageFormatEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ImageFormatEnum |
valueOfMenuName(String menuName)
Returns the ImageFormatEnum with the same menu name as the String given as an argument. |
static ImageFormatEnum[] |
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 ImageFormatEnum PNG
public static final ImageFormatEnum INVISIBLE_CANVAS_PNG
public static final ImageFormatEnum JPEG
public static final ImageFormatEnum GIF
Method Detail |
---|
public static final ImageFormatEnum[] values()
for(ImageFormatEnum c : ImageFormatEnum.values()) System.out.println(c);
public static ImageFormatEnum 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 getShortName()
public String getMenuName()
public String getSaveTitle()
public String getExtension()
public String toString()
toString
in class Enum<ImageFormatEnum>
public static ImageFormatEnum valueOfMenuName(String menuName)
IllegalArgumentException
- if the menu name does not match an
ImageFormatEnum.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |