public class TableCellStyleBuilder extends Object implements StyleBuilder<TableCellStyle>, HidableBuilder<TableCellStyleBuilder>
| Constructor and Description |
|---|
TableCellStyleBuilder(String name,
boolean hidden,
Borders borders,
Margins margins,
DataStyle dataStyle,
Color backgroundColor,
TextProperties textProperties,
CellAlign textAlign,
VerticalAlign verticalAlign,
boolean wrap,
TableCellStyle parentCellStyle,
Angle textRotating)
Reserved to TableCellStyle.toBuilder()
|
| Modifier and Type | Method and Description |
|---|---|
TableCellStyleBuilder |
allMargins(Length size)
Add a margin to this cell.
|
TableCellStyleBuilder |
backgroundColor(Color color)
Set the cell background color to color
|
TableCellStyleBuilder |
borderAll(BorderAttribute borderAttribute)
Add a border style for all the borders of this cell.
|
TableCellStyleBuilder |
borderAll(Length size,
Color borderColor,
BorderStyle style)
Add a border style for all the borders of this cell.
|
TableCellStyleBuilder |
borderBottom(BorderAttribute borderAttribute)
Add a border style for the bottom border of this cell.
|
TableCellStyleBuilder |
borderBottom(Length size,
Color borderColor,
BorderStyle style)
Add a border style for the bottom border of this cell.
|
TableCellStyleBuilder |
borderLeft(BorderAttribute borderAttribute)
Add a border style for the left border of this cell.
|
TableCellStyleBuilder |
borderLeft(Length size,
Color borderColor,
BorderStyle style)
Add a border style for the left border of this cell.
|
TableCellStyleBuilder |
borderRight(BorderAttribute borderAttribute)
Add a border style for the left border of this cell.
|
TableCellStyleBuilder |
borderRight(Length size,
Color borderColor,
BorderStyle style)
Add a border style for the right border of this cell.
|
TableCellStyleBuilder |
borderTop(BorderAttribute borderAttribute)
Add a border style for the top border of this cell.
|
TableCellStyleBuilder |
borderTop(Length size,
Color borderColor,
BorderStyle style)
Add a border style for the top border of this cell.
|
TableCellStyle |
build() |
TableCellStyleBuilder |
dataStyle(DataStyle ds)
Set the data style for this TableFamilyStyle to ds.
|
TableCellStyleBuilder |
fontColor(Color color)
Set the font color to color.
|
TableCellStyleBuilder |
fontName(String name)
Set the font name to be used for this style.
|
TableCellStyleBuilder |
fontSize(Length fontSize)
Set the font size to the given value.
|
TableCellStyleBuilder |
fontSizePercentage(double percentage)
Set the font size to the given fontSizePercentage.
|
TableCellStyleBuilder |
fontStyleItalic()
Set the font weight to italic.
|
TableCellStyleBuilder |
fontStyleNormal()
Set the font weight to normal.
|
TableCellStyleBuilder |
fontUnderlineColor(Color color)
Set the font underline color to color.
|
TableCellStyleBuilder |
fontUnderlineStyle(TextProperties.Underline style)
Set the style that should be used for the underline.
|
TableCellStyleBuilder |
fontWeightBold()
Set the font weight to bold.
|
TableCellStyleBuilder |
fontWeightNormal()
Set the font weight to normal.
|
TableCellStyleBuilder |
fontWrap(boolean fSetWrap)
/** Set font wrap.
|
TableCellStyleBuilder |
hidden()
Make this style hidden, ie part of automatic styles
|
TableCellStyleBuilder |
marginBottom(Length size)
Add a border style to this cell.
|
TableCellStyleBuilder |
marginLeft(Length size)
Add a border style to this cell.
|
TableCellStyleBuilder |
marginRight(Length size)
Add a border style to this cell.
|
TableCellStyleBuilder |
marginTop(Length size)
Add a border style to this cell.
|
TableCellStyleBuilder |
parentCellStyle(TableCellStyle tableCellStyle)
Sets the parent cell style
|
TableCellStyleBuilder |
textAlign(CellAlign align)
Set the alignment of text.
|
TableCellStyleBuilder |
textRotating(Angle angle)
Set text rotation angle
|
TableCellStyleBuilder |
verticalAlign(VerticalAlign align)
Set the vertical alignment of text.
|
public TableCellStyleBuilder(String name, boolean hidden, Borders borders, Margins margins, DataStyle dataStyle, Color backgroundColor, TextProperties textProperties, CellAlign textAlign, VerticalAlign verticalAlign, boolean wrap, TableCellStyle parentCellStyle, Angle textRotating)
name - A unique name for this stylehidden - true if the style is automaticdataStyle - the style of the databackgroundColor - the background colortextProperties - the text propertiestextAlign - horizontal alignverticalAlign - vertical alignwrap - true if the text is wrappedparentCellStyle - the parent styleborders - the borders of the cellmargins - the margins of the celltextRotating - an angle for the rotationpublic TableCellStyleBuilder allMargins(Length size)
size - The size of the marginpublic TableCellStyleBuilder backgroundColor(Color color)
color - - The color to be used in format #rrggbb e.g. #ff0000 for a
red cell backgroundpublic TableCellStyleBuilder borderAll(Length size, Color borderColor, BorderStyle style)
size - the size of the lineborderColor - the color to be used in format #rrggbb e.g. '#ff0000' for a red borderstyle - the style of the border line, either BorderAttribute.BORDER_SOLID or
BorderAttribute.BORDER_DOUBLEpublic TableCellStyleBuilder borderAll(BorderAttribute borderAttribute)
borderAttribute - the attribute for the borderpublic TableCellStyleBuilder borderBottom(Length size, Color borderColor, BorderStyle style)
size - the size of the lineborderColor - the color to be used in format #rrggbb e.g. '#ff0000' for a red borderstyle - the style of the border line, either BorderAttribute.BORDER_SOLID or
BorderAttribute.BORDER_DOUBLEpublic TableCellStyleBuilder borderBottom(BorderAttribute borderAttribute)
borderAttribute - the attribute for the borderpublic TableCellStyleBuilder borderLeft(Length size, Color borderColor, BorderStyle style)
size - the size of the lineborderColor - the color to be used in format #rrggbb e.g. '#ff0000' for a red borderstyle - the style of the border line, either BorderAttribute.BORDER_SOLID or
BorderAttribute.BORDER_DOUBLEpublic TableCellStyleBuilder borderLeft(BorderAttribute borderAttribute)
borderAttribute - the attribute for the borderpublic TableCellStyleBuilder borderRight(Length size, Color borderColor, BorderStyle style)
size - the size of the lineborderColor - the color to be used in format #rrggbb e.g. '#ff0000' for a red borderstyle - the style of the border line, either BorderAttribute.BORDER_SOLID or
BorderAttribute.BORDER_DOUBLEpublic TableCellStyleBuilder borderRight(BorderAttribute borderAttribute)
borderAttribute - the attribute for the borderpublic TableCellStyleBuilder borderTop(Length size, Color borderColor, BorderStyle style)
size - the size of the lineborderColor - the color to be used in format #rrggbb e.g. '#ff0000' for a red borderstyle - the style of the border line, either BorderAttribute.BORDER_SOLID or
BorderAttribute.BORDER_DOUBLEpublic TableCellStyleBuilder borderTop(BorderAttribute borderAttribute)
borderAttribute - the attribute for the borderpublic TableCellStyle build()
build in interface StyleBuilder<TableCellStyle>public TableCellStyleBuilder textRotating(Angle angle)
angle - TextRotation to be usedpublic TableCellStyleBuilder dataStyle(DataStyle ds)
ds - The date style to be usedpublic TableCellStyleBuilder fontColor(Color color)
color - The color to be used in format #rrggbb e.g. #ff0000 for a red
cell backgroundpublic TableCellStyleBuilder fontName(String name)
name - The font name for this TextStylepublic TableCellStyleBuilder fontSize(Length fontSize)
fontSize - - The font sizepublic TableCellStyleBuilder fontSizePercentage(double percentage)
percentage - the font size as a fontSizePercentage.public TableCellStyleBuilder fontStyleItalic()
public TableCellStyleBuilder fontStyleNormal()
public TableCellStyleBuilder fontUnderlineColor(Color color)
color - The color to be used in format #rrggbb e.g. #ff0000 for a red
cell background.public TableCellStyleBuilder fontUnderlineStyle(TextProperties.Underline style)
style - One of the TextStyle.STYLE_UNDERLINEpublic TableCellStyleBuilder fontWeightBold()
public TableCellStyleBuilder fontWeightNormal()
public TableCellStyleBuilder fontWrap(boolean fSetWrap)
fSetWrap - public TableCellStyleBuilder marginBottom(Length size)
size - The size of the margin as lengthpublic TableCellStyleBuilder marginLeft(Length size)
size - The size of the margin as lengthpublic TableCellStyleBuilder marginRight(Length size)
size - The size of the margin as lengthpublic TableCellStyleBuilder marginTop(Length size)
size - The size of the margin as lengthpublic TableCellStyleBuilder parentCellStyle(TableCellStyle tableCellStyle)
tableCellStyle - the parent cell style (not null)public TableCellStyleBuilder textAlign(CellAlign align)
align - - The text alignment flag,public TableCellStyleBuilder verticalAlign(VerticalAlign align)
align - - The vertical alignment flagpublic TableCellStyleBuilder hidden()
HidableBuilderhidden in interface HidableBuilder<TableCellStyleBuilder>Copyright © 2016–2021. All rights reserved.