Package io.keikai.axyra.sheets.style
Enum Class FontVertical
- All Implemented Interfaces:
Serializable,Comparable<FontVertical>,Constable
The vertical position of the font: normal baseline, superscript or subscript
(ECMA-376
ST_VerticalAlignRun). Set it with
CellStyle.Builder.fontVertical(FontVertical).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNormal text on the baseline.Lowered and smaller, as the 2 in H2O.Raised and smaller, as in x squared. -
Method Summary
Modifier and TypeMethodDescriptionstatic FontVerticalParses anST_VerticalAlignRuntoken, case-sensitively.token()The ECMA-376ST_VerticalAlignRuntoken, e.g.static FontVerticalReturns the enum constant of this class with the specified name.static FontVertical[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASELINE
Normal text on the baseline. -
SUPERSCRIPT
Raised and smaller, as in x squared. -
SUBSCRIPT
Lowered and smaller, as the 2 in H2O.
-
-
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_VerticalAlignRuntoken, e.g."superscript".- Returns:
- the token as written in the file
-
from
Parses anST_VerticalAlignRuntoken, case-sensitively.- Parameters:
token- the token, e.g."subscript"- Returns:
- the matching position;
BASELINEfornull, empty or unknown tokens
-