Package io.keikai.axyra.sheets.style
Class Theme
java.lang.Object
io.keikai.axyra.sheets.style.Theme
The workbook theme — the 12-slot color scheme plus the major (heading) and
minor (body) font names. Theme colors are the source Excel resolves
Color.theme(...) references against.
Color slots are raw OOXML tokens: usually "RRGGBB"/"AARRGGBB"
hex (no leading #), but dk1/lt1 are frequently the
system tokens "windowText"/"window". Use color(Slot)
for the raw token and rgb(Slot) for a parsed Color (null when
the slot is a system token).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder for aTheme.static enumThe 12 canonical theme color slots, in ECMA-376<a:clrScheme>order. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Theme.Builderbuilder()color(Theme.Slot slot) The raw color token forslot(hex or a system token), or null.String[]colors()The 12 raw color tokens (defensive copy; slots may be null).The major (heading) font name.The minor (body) font name.static ThemeBuild aThemefrom the engine's raw representation: the 12 color tokens (a shorter/longer array is padded/truncated to 12) and the fonts.rgb(Theme.Slot slot) The slot color as aColor, or null when it is a system token / unset.
-
Field Details
-
SLOT_COUNT
public static final int SLOT_COUNTNumber of color slots in a theme.- See Also:
-
-
Method Details
-
of
Build aThemefrom the engine's raw representation: the 12 color tokens (a shorter/longer array is padded/truncated to 12) and the fonts. -
color
The raw color token forslot(hex or a system token), or null. -
rgb
The slot color as aColor, or null when it is a system token / unset. -
majorFont
The major (heading) font name. -
minorFont
The minor (body) font name. -
colors
The 12 raw color tokens (defensive copy; slots may be null). -
toBuilder
-
builder
-