Package io.keikai.axyra.sheets.style
Enum Class PatternType
- All Implemented Interfaces:
Serializable,Comparable<PatternType>,Constable
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().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThick diagonal stripes running down from left to right.75 % gray dot pattern.Thick horizontal and vertical crosshatch.Thick horizontal stripes.Thick diagonal crosshatch (trellis).Thick diagonal stripes running up from left to right.Thick vertical stripes.6.25 % gray dot pattern.12.5 % gray dot pattern.Thin diagonal stripes running down from left to right.25 % gray dot pattern.Thin horizontal and vertical crosshatch.Thin horizontal stripes.Thin diagonal crosshatch.Thin diagonal stripes running up from left to right.Thin vertical stripes.50 % gray: foreground dots over the background.No fill; the cell shows the sheet background.Solid fill in the foreground color. -
Method Summary
Modifier and TypeMethodDescriptionstatic PatternTypeParses anST_PatternTypetoken, case-sensitively.token()The ECMA-376ST_PatternTypetoken, e.g.static PatternTypeReturns the enum constant of this class with the specified name.static PatternType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No fill; the cell shows the sheet background. -
SOLID
Solid fill in the foreground color. -
MEDIUM_GRAY
50 % gray: foreground dots over the background. -
DARK_GRAY
75 % gray dot pattern. -
LIGHT_GRAY
25 % gray dot pattern. -
DARK_HORIZONTAL
Thick horizontal stripes. -
DARK_VERTICAL
Thick vertical stripes. -
DARK_DOWN
Thick diagonal stripes running down from left to right. -
DARK_UP
Thick diagonal stripes running up from left to right. -
DARK_GRID
Thick horizontal and vertical crosshatch. -
DARK_TRELLIS
Thick diagonal crosshatch (trellis). -
LIGHT_HORIZONTAL
Thin horizontal stripes. -
LIGHT_VERTICAL
Thin vertical stripes. -
LIGHT_DOWN
Thin diagonal stripes running down from left to right. -
LIGHT_UP
Thin diagonal stripes running up from left to right. -
LIGHT_GRID
Thin horizontal and vertical crosshatch. -
LIGHT_TRELLIS
Thin diagonal crosshatch. -
GRAY_125
12.5 % gray dot pattern. -
GRAY_0625
6.25 % gray dot pattern.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
token
The ECMA-376ST_PatternTypetoken, e.g."lightGrid".- Returns:
- the token as written in the file
-
from
Parses anST_PatternTypetoken, case-sensitively.- Parameters:
token- the token, e.g."solid"- Returns:
- the matching pattern;
NONEfornull, empty or unknown tokens
-