Package net.sourceforge.plantuml
Enum FileFormat
- java.lang.Object
-
- java.lang.Enum<FileFormat>
-
- net.sourceforge.plantuml.FileFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<FileFormat>
public enum FileFormat extends Enum<FileFormat>
Format for output files generated by PlantUML.- Author:
- Arnaud Roques
-
-
Field Summary
Fields Modifier and Type Field Description static Graphics2D
gg
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
changeName(String fileName, int cpt)
boolean
doesSupportMetadata()
boolean
equalsMetadata(String currentMetadata, SFile existingFile)
StringBounder
getDefaultStringBounder()
StringBounder
getDefaultStringBounder(TikzFontDistortion tikzFontDistortion, SvgCharSizeHack charSizeHack)
String
getFileSuffix()
Returns the file format to be used for that format.String
getMimeType()
boolean
isEps()
Check if this file format is Encapsulated PostScript.static FileFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PNG
public static final FileFormat PNG
-
SVG
public static final FileFormat SVG
-
EPS
public static final FileFormat EPS
-
EPS_TEXT
public static final FileFormat EPS_TEXT
-
ATXT
public static final FileFormat ATXT
-
UTXT
public static final FileFormat UTXT
-
XMI_STANDARD
public static final FileFormat XMI_STANDARD
-
XMI_STAR
public static final FileFormat XMI_STAR
-
XMI_ARGO
public static final FileFormat XMI_ARGO
-
SCXML
public static final FileFormat SCXML
-
PDF
public static final FileFormat PDF
-
MJPEG
public static final FileFormat MJPEG
-
ANIMATED_GIF
public static final FileFormat ANIMATED_GIF
-
HTML
public static final FileFormat HTML
-
HTML5
public static final FileFormat HTML5
-
VDX
public static final FileFormat VDX
-
LATEX
public static final FileFormat LATEX
-
LATEX_NO_PREAMBLE
public static final FileFormat LATEX_NO_PREAMBLE
-
BASE64
public static final FileFormat BASE64
-
BRAILLE_PNG
public static final FileFormat BRAILLE_PNG
-
PREPROC
public static final FileFormat PREPROC
-
DEBUG
public static final FileFormat DEBUG
-
-
Field Detail
-
gg
public static final Graphics2D gg
-
-
Method Detail
-
values
public static FileFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileFormat c : FileFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMimeType
public String getMimeType()
-
getFileSuffix
public String getFileSuffix()
Returns the file format to be used for that format.- Returns:
- a string starting by a point.
-
getDefaultStringBounder
public StringBounder getDefaultStringBounder()
-
getDefaultStringBounder
public StringBounder getDefaultStringBounder(TikzFontDistortion tikzFontDistortion, SvgCharSizeHack charSizeHack)
-
isEps
public boolean isEps()
Check if this file format is Encapsulated PostScript.- Returns:
true
for EPS.
-
doesSupportMetadata
public boolean doesSupportMetadata()
-
-