Enum Class BorderStyle

java.lang.Object
java.lang.Enum<BorderStyle>
io.keikai.axyra.sheets.style.BorderStyle
All Implemented Interfaces:
Serializable, Comparable<BorderStyle>, Constable

public enum BorderStyle extends Enum<BorderStyle>
The line style of one cell border edge (ECMA-376 ST_BorderStyle). Set it with CellStyle.Builder.border(Side, BorderStyle, Color); read it back with CellStyle.border(Side).
  • Enum Constant Details

    • NONE

      public static final BorderStyle NONE
      No line.
    • THIN

      public static final BorderStyle THIN
      Thin solid line, 1 px at 100 % zoom.
    • MEDIUM

      public static final BorderStyle MEDIUM
      Medium solid line, 2 px.
    • DASHED

      public static final BorderStyle DASHED
      Thin dashed line.
    • DOTTED

      public static final BorderStyle DOTTED
      Thin dotted line.
    • THICK

      public static final BorderStyle THICK
      Thick solid line, 3 px.
    • DOUBLE

      public static final BorderStyle DOUBLE
      Two thin parallel lines.
    • HAIR

      public static final BorderStyle HAIR
      Hairline: the finest dotted line, 1 px with the dots close together.
    • MEDIUM_DASHED

      public static final BorderStyle MEDIUM_DASHED
      Medium dashed line, 2 px.
    • DASH_DOT

      public static final BorderStyle DASH_DOT
      Thin dash-dot line.
    • MEDIUM_DASH_DOT

      public static final BorderStyle MEDIUM_DASH_DOT
      Medium dash-dot line.
    • DASH_DOT_DOT

      public static final BorderStyle DASH_DOT_DOT
      Thin dash-dot-dot line.
    • MEDIUM_DASH_DOT_DOT

      public static final BorderStyle MEDIUM_DASH_DOT_DOT
      Medium dash-dot-dot line.
    • SLANT_DASH_DOT

      public static final BorderStyle SLANT_DASH_DOT
      Medium dash-dot line whose dashes have slanted ends.
  • 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
    • token

      public String token()
      The ECMA-376 ST_BorderStyle token, e.g. "mediumDashed".
      Returns:
      the token as written in the file
    • from

      public static BorderStyle from(String token)
      Parses an ST_BorderStyle token, case-sensitively.
      Parameters:
      token - the token, e.g. "thin"
      Returns:
      the matching style; NONE for null, empty or unknown tokens