Package io.keikai.axyra.sheets.style
Enum Class BorderStyle
- All Implemented Interfaces:
Serializable,Comparable<BorderStyle>,Constable
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).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThin dash-dot line.Thin dash-dot-dot line.Thin dashed line.Thin dotted line.Two thin parallel lines.Hairline: the finest dotted line, 1 px with the dots close together.Medium solid line, 2 px.Medium dash-dot line.Medium dash-dot-dot line.Medium dashed line, 2 px.No line.Medium dash-dot line whose dashes have slanted ends.Thick solid line, 3 px.Thin solid line, 1 px at 100 % zoom. -
Method Summary
Modifier and TypeMethodDescriptionstatic BorderStyleParses anST_BorderStyletoken, case-sensitively.token()The ECMA-376ST_BorderStyletoken, e.g.static BorderStyleReturns the enum constant of this class with the specified name.static BorderStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No line. -
THIN
Thin solid line, 1 px at 100 % zoom. -
MEDIUM
Medium solid line, 2 px. -
DASHED
Thin dashed line. -
DOTTED
Thin dotted line. -
THICK
Thick solid line, 3 px. -
DOUBLE
Two thin parallel lines. -
HAIR
Hairline: the finest dotted line, 1 px with the dots close together. -
MEDIUM_DASHED
Medium dashed line, 2 px. -
DASH_DOT
Thin dash-dot line. -
MEDIUM_DASH_DOT
Medium dash-dot line. -
DASH_DOT_DOT
Thin dash-dot-dot line. -
MEDIUM_DASH_DOT_DOT
Medium dash-dot-dot line. -
SLANT_DASH_DOT
Medium dash-dot line whose dashes have slanted ends.
-
-
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_BorderStyletoken, e.g."mediumDashed".- Returns:
- the token as written in the file
-
from
Parses anST_BorderStyletoken, case-sensitively.- Parameters:
token- the token, e.g."thin"- Returns:
- the matching style;
NONEfornull, empty or unknown tokens
-