Enum Class PatternType

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

public enum PatternType extends Enum<PatternType>
The pattern of a cell fill (ECMA-376 ST_PatternType). SOLID paints the whole cell in the foreground color. The other patterns draw the foreground color in the pattern over the background color. Set it with CellStyle.Builder.fillPattern(PatternType, Color, Color); read it back with CellStyle.fillPattern().
  • Enum Constant Details

    • NONE

      public static final PatternType NONE
      No fill; the cell shows the sheet background.
    • SOLID

      public static final PatternType SOLID
      Solid fill in the foreground color.
    • MEDIUM_GRAY

      public static final PatternType MEDIUM_GRAY
      50 % gray: foreground dots over the background.
    • DARK_GRAY

      public static final PatternType DARK_GRAY
      75 % gray dot pattern.
    • LIGHT_GRAY

      public static final PatternType LIGHT_GRAY
      25 % gray dot pattern.
    • DARK_HORIZONTAL

      public static final PatternType DARK_HORIZONTAL
      Thick horizontal stripes.
    • DARK_VERTICAL

      public static final PatternType DARK_VERTICAL
      Thick vertical stripes.
    • DARK_DOWN

      public static final PatternType DARK_DOWN
      Thick diagonal stripes running down from left to right.
    • DARK_UP

      public static final PatternType DARK_UP
      Thick diagonal stripes running up from left to right.
    • DARK_GRID

      public static final PatternType DARK_GRID
      Thick horizontal and vertical crosshatch.
    • DARK_TRELLIS

      public static final PatternType DARK_TRELLIS
      Thick diagonal crosshatch (trellis).
    • LIGHT_HORIZONTAL

      public static final PatternType LIGHT_HORIZONTAL
      Thin horizontal stripes.
    • LIGHT_VERTICAL

      public static final PatternType LIGHT_VERTICAL
      Thin vertical stripes.
    • LIGHT_DOWN

      public static final PatternType LIGHT_DOWN
      Thin diagonal stripes running down from left to right.
    • LIGHT_UP

      public static final PatternType LIGHT_UP
      Thin diagonal stripes running up from left to right.
    • LIGHT_GRID

      public static final PatternType LIGHT_GRID
      Thin horizontal and vertical crosshatch.
    • LIGHT_TRELLIS

      public static final PatternType LIGHT_TRELLIS
      Thin diagonal crosshatch.
    • GRAY_125

      public static final PatternType GRAY_125
      12.5 % gray dot pattern.
    • GRAY_0625

      public static final PatternType GRAY_0625
      6.25 % gray dot pattern.
  • Method Details

    • values

      public static PatternType[] 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 PatternType 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_PatternType token, e.g. "lightGrid".
      Returns:
      the token as written in the file
    • from

      public static PatternType from(String token)
      Parses an ST_PatternType token, case-sensitively.
      Parameters:
      token - the token, e.g. "solid"
      Returns:
      the matching pattern; NONE for null, empty or unknown tokens