Enum Class DivLayerAlign

java.lang.Object
java.lang.Enum<DivLayerAlign>
com.jbstrap.jbmap.enums.DivLayerAlign
All Implemented Interfaces:
Serializable, Comparable<DivLayerAlign>, Constable

public enum DivLayerAlign extends Enum<DivLayerAlign>
DivLayer align used for maps.
Since:
4.0
  • Enum Constant Details

    • TOP_LEFT

      public static final DivLayerAlign TOP_LEFT
      Aligns the DivLayer to the upper left corner of the map.
    • TOP_RIGHT

      public static final DivLayerAlign TOP_RIGHT
      Aligns the DivLayer to the upper right corner of the map.
    • BOTTOM_LEFT

      public static final DivLayerAlign BOTTOM_LEFT
      Aligns the DivLayer to the lower left corner of the map.
    • BOTTOM_RIGHT

      public static final DivLayerAlign BOTTOM_RIGHT
      Aligns the DivLayer to the lower right corner of the map.
  • Method Details

    • values

      public static DivLayerAlign[] 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 DivLayerAlign 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
    • getValue

      public String getValue()
      Gets the alignment text.
      Returns:
      Alignment text
    • fromName

      public static DivLayerAlign fromName(String name)
      Determines a DivLayerAlign by its specified name.
      Parameters:
      name - DivLayerAlign name
      Returns:
      DivLayerAlign for the specified name or null if there is no DivLayerAlign for the specified name
    • fromValue

      public static DivLayerAlign fromValue(String value)
      Determines the divLayer align
      Parameters:
      value - DivLayer align
      Returns:
      DivLayerAlign for the specified value or null if there is no DivLayerAlign for the specified value