Enum Class MapLayer.RenderType

java.lang.Object
java.lang.Enum<MapLayer.RenderType>
org.mapfish.print.attribute.map.MapLayer.RenderType
All Implemented Interfaces:
Serializable, Comparable<MapLayer.RenderType>, Constable
Enclosing interface:
MapLayer

public static enum MapLayer.RenderType extends Enum<MapLayer.RenderType>
Enumerated type to specify whether layer should be rendered as PNG, JPEG or SVG.
  • Enum Constant Details

  • Method Details

    • values

      public static MapLayer.RenderType[] 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

      public static MapLayer.RenderType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromMimeType

      public static MapLayer.RenderType fromMimeType(String mimeType)
      Get RenderType from a string that represents a mime type.
      Parameters:
      mimeType - string with mime type
      Returns:
      render type
    • fromFileExtension

      public static MapLayer.RenderType fromFileExtension(String fileExtension)
      Get RenderType from a string that represents a file extension.
      Parameters:
      fileExtension - string with file extension
      Returns:
      render type