|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DiagramFileType>
de.frag.umlplugin.uml.diagramio.DiagramFileType
public enum DiagramFileType
Diagram file types.
Enum Constant Summary | |
---|---|
DIAGRAM
|
|
DIAGRAMS
|
|
GIF
|
|
GRAPHML
|
|
JPG
|
|
PNG
|
|
SVG
|
Method Summary | |
---|---|
java.lang.String |
appendExtension(java.lang.String path)
Appends extension, if it is not already present. |
boolean |
canWriteMultipleDiagrams()
Checks whether this writer can write multiple diagrams or not. |
boolean |
canWriteThumbnail()
Checks whether this file type supports storage of image thumbnails. |
java.lang.String |
createThumbnailPath(java.lang.String path,
java.lang.String thumbnailSuffix)
Creates a thumbnail path. |
java.lang.String |
getDescription()
Gets file type description. |
java.lang.String |
toString()
Gets file type name. |
static DiagramFileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DiagramFileType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
writeDiagram(UMLDiagram[] diagrams,
java.lang.String path,
boolean saveThumbnail,
int thumbnailHeight)
Writes given diagrams 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 DiagramFileType DIAGRAM
public static final DiagramFileType DIAGRAMS
public static final DiagramFileType GIF
public static final DiagramFileType JPG
public static final DiagramFileType PNG
public static final DiagramFileType SVG
public static final DiagramFileType GRAPHML
Method Detail |
---|
public static DiagramFileType[] values()
for (DiagramFileType c : DiagramFileType.values()) System.out.println(c);
public static DiagramFileType 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<DiagramFileType>
@NotNull public java.lang.String appendExtension(@NotNull java.lang.String path)
path
- path to append extension to
@NotNull public java.lang.String createThumbnailPath(@NotNull java.lang.String path, @NotNull java.lang.String thumbnailSuffix)
path
- path of normal file with extension already attached.thumbnailSuffix
- thumbnail suffix
public boolean canWriteMultipleDiagrams()
public void writeDiagram(@NotNull UMLDiagram[] diagrams, @NotNull java.lang.String path, boolean saveThumbnail, int thumbnailHeight) throws java.io.IOException
diagrams
- diagrams 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 |