Enum Class ServerConfiguration.TileCompressionType
java.lang.Object
java.lang.Enum<ServerConfiguration.TileCompressionType>
com.levigo.jadice.web.server.config.ServerConfiguration.TileCompressionType
- All Implemented Interfaces:
Serializable
,Comparable<ServerConfiguration.TileCompressionType>
,Constable
- Enclosing interface:
ServerConfiguration
public static enum ServerConfiguration.TileCompressionType
extends Enum<ServerConfiguration.TileCompressionType>
Enum to define the supported PNG compressions for tile rendering
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWrite the PNG files created for tile rendering via ImageIO (best compression).Write the PNG files created for tile rendering via ImageIO but writes to an ByteArrayOutputStream first (prevents some IllegalArgumentExceptions that might occur with Tomcat).Write the PNG files created for tile rendering via PNGJ with best compression.Write the PNG files created for tile rendering via PNGJ with best speed.Writes the files as WebP instead of PNG. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMAGEIO
Write the PNG files created for tile rendering via ImageIO (best compression). -
PNGJ_BEST_COMPRESSION
Write the PNG files created for tile rendering via PNGJ with best compression. -
PNGJ_BEST_SPEED
Write the PNG files created for tile rendering via PNGJ with best speed. -
IMAGEIO_NO_STREAM
Write the PNG files created for tile rendering via ImageIO but writes to an ByteArrayOutputStream first (prevents some IllegalArgumentExceptions that might occur with Tomcat). -
WEBP_LOSSY
Writes the files as WebP instead of PNG. WebP is supported in all modern browsers (see CanIUse). In case this setting is used and a browser doesn't support WebP the tile will automatically be served as PNG. If the lossy option is used, the quality is set to 60%, high-quality option is set to 78% -
WEBP_LOSSY_HIGH_QUALITY
-
WEBP_LOSSLESS
-
-
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
-