Enum Class ImageConfig.Format
- All Implemented Interfaces:
Serializable
,Comparable<ImageConfig.Format>
,java.lang.constant.Constable
- Enclosing interface:
- ImageConfig
Supported image formats.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionValue to indicate UML diagrams must be rendered as EPS (Encapsulated Postscript) images.Value to indicate UML diagrams must be rendered as PNG (Portable Network Graphics) images.Value to indicate UML diagrams must be rendered as SVG (scalable vector graphics) images. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageConfig.Format
Returns the enum constant of this class with the specified name.static ImageConfig.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SVG
Value to indicate UML diagrams must be rendered as SVG (scalable vector graphics) images.This format is the default and recommended format, as they have the following advantages over the other formats:
- Size. UML diagrams can be represented as compact SVG images.
- Scalability. SVG images can be scaled almost without limits.
- Links. SVG images allow us to embed links in the UML diagrams.
-
PNG
Value to indicate UML diagrams must be rendered as PNG (Portable Network Graphics) images.This is a raster-graphics format that supports lossless compression. This format is usually only used if
SVG
is not an option. -
EPS
Value to indicate UML diagrams must be rendered as EPS (Encapsulated Postscript) images.This format is most appropriate for print.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-