|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GraphFileType>
de.frag.umlplugin.graphio.GraphFileType
public enum GraphFileType
Diagram file types.
Enum Constant Summary | |
---|---|
GIF
|
|
JPG
|
|
PNG
|
|
SVG
|
Method Summary | |
---|---|
java.lang.String |
appendExtension(java.lang.String path)
Appends extension, if it is not already present. |
boolean |
canWriteThumbnail()
Checks whether this file type supports storage of image thumbnails. |
java.lang.String |
getDescription()
Gets file type description. |
java.lang.String |
toString()
Gets file type name. |
static GraphFileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GraphFileType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
writeGraph(com.intellij.openapi.graph.view.Graph2D graph,
java.lang.String path,
boolean saveThumbnail,
int thumbnailHeight)
Writes given graph to specified file path. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GraphFileType GIF
public static final GraphFileType JPG
public static final GraphFileType PNG
public static final GraphFileType SVG
Method Detail |
---|
public static GraphFileType[] values()
for (GraphFileType c : GraphFileType.values()) System.out.println(c);
public static GraphFileType 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 null@NotNull public java.lang.String getDescription()
getDescription
in interface FileType
@NotNull public java.lang.String toString()
toString
in interface FileType
toString
in class java.lang.Enum<GraphFileType>
@NotNull public java.lang.String appendExtension(@NotNull java.lang.String path)
path
- path to append extension to
public void writeGraph(@NotNull com.intellij.openapi.graph.view.Graph2D graph, @NotNull java.lang.String path, boolean saveThumbnail, int thumbnailHeight) throws java.io.IOException
graph
- graph to writepath
- path to target filesaveThumbnail
- true, if thumbnail should be written; false otherwisethumbnailHeight
- desired thumbnail height in pixels
java.io.IOException
- on IO errorpublic boolean canWriteThumbnail()
canWriteThumbnail
in interface FileType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |