Package io.keikai.axyra.sheets.style
Enum Class Underline
- All Implemented Interfaces:
Serializable,Comparable<Underline>,Constable
The underline style of a font (ECMA-376
ST_UnderlineValues). Set it
with CellStyle.Builder.underline(Underline).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTwo lines under the text.Two lines placed lower and spanning the cell width.No underline.One line under the text.One line placed lower and spanning the cell width, as on financial statements. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnderlineParses anST_UnderlineValuestoken, case-sensitively.token()The ECMA-376ST_UnderlineValuestoken, e.g.static UnderlineReturns the enum constant of this class with the specified name.static Underline[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No underline. -
SINGLE
One line under the text. -
DOUBLE
Two lines under the text. -
SINGLE_ACCOUNTING
One line placed lower and spanning the cell width, as on financial statements. -
DOUBLE_ACCOUNTING
Two lines placed lower and spanning the cell width.
-
-
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_UnderlineValuestoken, e.g."singleAccounting".- Returns:
- the token as written in the file
-
from
Parses anST_UnderlineValuestoken, case-sensitively.- Parameters:
token- the token, e.g."single"- Returns:
- the matching style;
NONEfornull, empty or unknown tokens
-