Uses of Class
io.keikai.axyra.sheets.style.CellStyle.Builder
Packages that use CellStyle.Builder
-
Uses of CellStyle.Builder in io.keikai.axyra.sheets.style
Methods in io.keikai.axyra.sheets.style that return CellStyle.BuilderModifier and TypeMethodDescriptionCellStyle.Builder.allBorders(BorderStyle style, Color color) Sets the left, right, top and bottom edges of each cell to the same line.CellStyle.Builder.bold()Makes the font bold; shorthand forbold(true).CellStyle.Builder.bold(boolean b) Sets (true) or clears (false) bold.CellStyle.Builder.border(Side side, BorderStyle style, Color color) Sets one border edge.static CellStyle.BuilderCellStyle.builder()An empty builder.CellStyle.Builder.diagonalDown(boolean on) Shows (true) or hides the diagonal line from top-left to bottom-right.CellStyle.Builder.diagonalUp(boolean on) Shows (true) or hides the diagonal line from bottom-left to top-right.CellStyle.Builder.fillPattern(PatternType pattern, Color foreground, Color background) Sets a patterned fill:patterndrawn inforegroundoverbackground.CellStyle.Builder.fontCharset(int charset) Sets the font character set code (0 = ANSI, 1 = DEFAULT, 128 = Shift-JIS, …).Sets the font color.CellStyle.Builder.fontFamily(int family) Sets the font family class: 0 = not applicable, 1 = Roman, 2 = Swiss, 3 = Modern, 4 = Script, 5 = Decorative.Sets the font family name, e.g.CellStyle.Builder.fontScheme(String scheme) Sets the theme font scheme the font belongs to.CellStyle.Builder.fontSize(double points) Sets the font size.CellStyle.Builder.fontVertical(FontVertical v) Sets the font position: baseline, superscript or subscript.CellStyle.Builder.gradientFill(int degree, Color... colors) Sets a linear gradient fill acrosscolors, spread evenly from position 0 to 1.CellStyle.Builder.hidden(boolean b) Hides the formula from the formula bar while the sheet is protected (true).CellStyle.Builder.horizontalAlign(HAlign h) Sets the horizontal alignment.CellStyle.Builder.indent(int level) Sets the indent level.CellStyle.Builder.italic()Makes the font italic; shorthand foritalic(true).CellStyle.Builder.italic(boolean b) Sets (true) or clears (false) italic.CellStyle.Builder.locked(boolean b) Locks (true, the default) or unlocks the cell for sheet protection.CellStyle.Builder.numberFormat(String code) Sets the Excel number format code, e.g.CellStyle.Builder.pathGradientFill(Color... colors) Sets a path gradient fill that converges at the cell center (Excel's "From center" gradient), acrosscolorsspread evenly from position 0 to 1.CellStyle.Builder.shrinkToFit(boolean b) Shrinks the text to fit the cell width (true) instead of letting it overflow.CellStyle.Builder.strikethrough(boolean b) Sets (true) or clears (false) strikethrough.CellStyle.Builder.subscript()Shorthand forfontVertical(SUBSCRIPT).CellStyle.Builder.superscript()Shorthand forfontVertical(SUPERSCRIPT).CellStyle.Builder.textRotation(int degrees) Sets the text rotation in the ECMA-376 §18.8.1 encoding: 0-90 rotates counter-clockwise by that many degrees, 91-180 rotates clockwise by (value - 90) degrees, and 255 stacks the characters vertically.CellStyle.toBuilder()A builder pre-loaded with every attribute of this style.Sets the underline style.CellStyle.Builder.verticalAlign(VAlign v) Sets the vertical alignment.CellStyle.Builder.wrapText(boolean b) Wraps text onto several lines inside the cell (true).