Enum Class BorderStyle

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

public enum BorderStyle extends Enum<BorderStyle>
Border Styles used for maps.
Since:
4.0
  • Enum Constant Details

    • NONE

      public static final BorderStyle NONE
      The border is not displayed.
    • DOTTED

      public static final BorderStyle DOTTED
      The border is dotted.
    • DASHED

      public static final BorderStyle DASHED
      The border is dashed.
    • SOLID

      public static final BorderStyle SOLID
      The border is solid.
    • DOUBLE

      public static final BorderStyle DOUBLE
      The border is double solid.
  • Method Details

    • values

      public static BorderStyle[] 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 BorderStyle 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 border style text.
      Returns:
      The border style text
    • fromName

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

      public static BorderStyle fromValue(String value)
      Determines the border style based on the font weight value.
      Parameters:
      value - Border style value
      Returns:
      Border style for the specified value or null if there is no border style for the specified value