|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectjava.lang.Enum<FileType>
com.mebigfatguy.polycasso.FileType
public enum FileType
an enum that represents possible save-as types
| Enum Constant Summary | |
|---|---|
Java
a java file |
|
PNG
A portable network graphics file |
|
SVG
a scalable vector graphics file |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
returns the description for this file type |
java.lang.String |
getExtension()
returns the extension for this type |
abstract Saver |
getSaver()
the action to save the file |
static FileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FileType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FileType PNG
public static final FileType SVG
public static final FileType Java
| Method Detail |
|---|
public static FileType[] values()
for (FileType c : FileType.values()) System.out.println(c);
public static FileType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getExtension()
public java.lang.String getDescription()
public abstract Saver getSaver()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||