Package io.keikai.axyra.sheets.style
Class CellStyle.Builder
java.lang.Object
io.keikai.axyra.sheets.style.CellStyle.Builder
- Enclosing class:
- CellStyle
Fluent builder; only the attributes you set are sent (engine fills the rest).
-
Method Summary
Modifier and TypeMethodDescriptionallBorders(BorderStyle style, Color color) The four outer border edges at once.bold()bold(boolean b) border(Side side, BorderStyle style, Color color) One border edge.build()diagonalDown(boolean on) Diagonal direction: top-left to bottom-right.diagonalUp(boolean on) Diagonal direction: bottom-left to top-right.Solid background fill.fillPattern(PatternType pattern, Color foreground, Color background) A patterned fill:patterndrawn inforegroundoverbackground.fontCharset(int charset) Font character set (0 = ANSI, 1 = DEFAULT, …).fontFamily(int family) Font-family class (0 = n/a, 1 = Roman, 2 = Swiss, 3 = Modern, 4 = Script, 5 = Decorative).fontScheme(String scheme) Font theme scheme ("major","minor", or empty).fontSize(double points) Font vertical alignment (baseline / superscript / subscript).gradientFill(int degree, Color... colors) A linear gradient fill atdegreedegrees across two or more color stops (spread evenly from 0 to 1).hidden(boolean b) indent(int level) italic()italic(boolean b) locked(boolean b) numberFormat(String code) pathGradientFill(Color... colors) A path (shape-bounded) gradient fill converging at the cell center, across two or more color stops (spread evenly from 0 to 1).shrinkToFit(boolean b) Shrink the text to fit rather than letting it overflow.strikethrough(boolean b) Shorthand forfontVertical(SUBSCRIPT).Shorthand forfontVertical(SUPERSCRIPT).textRotation(int degrees) wrapText(boolean b)
-
Method Details
-
fontName
-
fontSize
-
bold
-
bold
-
italic
-
italic
-
strikethrough
-
underline
-
fontColor
-
fontVertical
Font vertical alignment (baseline / superscript / subscript). -
superscript
Shorthand forfontVertical(SUPERSCRIPT). -
subscript
Shorthand forfontVertical(SUBSCRIPT). -
fontCharset
Font character set (0 = ANSI, 1 = DEFAULT, …). -
fontFamily
Font-family class (0 = n/a, 1 = Roman, 2 = Swiss, 3 = Modern, 4 = Script, 5 = Decorative). -
fontScheme
Font theme scheme ("major","minor", or empty). -
fill
Solid background fill. -
fillPattern
A patterned fill:patterndrawn inforegroundoverbackground. ForPatternType.SOLID,foregroundis the visible fill andbackgroundis ignored (passnull). -
gradientFill
A linear gradient fill atdegreedegrees across two or more color stops (spread evenly from 0 to 1). -
pathGradientFill
A path (shape-bounded) gradient fill converging at the cell center, across two or more color stops (spread evenly from 0 to 1). Excel's "From Center" gradient; the first color sits at the center. Distinct fromgradientFill(int, Color...)(linear). -
border
One border edge. -
diagonalDown
Diagonal direction: top-left to bottom-right. -
diagonalUp
Diagonal direction: bottom-left to top-right. -
allBorders
The four outer border edges at once. -
horizontalAlign
-
verticalAlign
-
shrinkToFit
Shrink the text to fit rather than letting it overflow. -
wrapText
-
textRotation
-
indent
-
numberFormat
-
locked
-
build
-