public class TextStyleBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
TextStyle |
build() |
TextStyleBuilder |
fontColor(Color color)
Set the font color to color.
|
TextStyleBuilder |
fontName(String fontName)
Set the font name to be used for this style.
|
TextStyleBuilder |
fontSize(Length fontSize)
Set the font size to the given value.
|
TextStyleBuilder |
fontSizePercentage(double percentage)
Set the font size to the given fontSizePercentage.
|
TextStyleBuilder |
fontStyleItalic()
Set the font weight to italic.
|
TextStyleBuilder |
fontStyleNormal()
Set the font weight to italic.
|
TextStyleBuilder |
fontUnderlineColor(Color color)
Set the font underline color to color.
|
TextStyleBuilder |
fontUnderlineStyle(TextProperties.Underline style)
Set the style that should be used for the underline.
|
TextStyleBuilder |
fontWeightBold()
Set the font weight to bold.
|
TextStyleBuilder |
fontWeightNormal()
Set the font weight to normal.
|
TextStyleBuilder |
visible()
Set the style visible.
|
public TextStyle build()
public TextStyleBuilder fontColor(Color color)
color - The color to be used in format #rrggbb e.g. #ff0000 for a red
cell backgroundpublic TextStyleBuilder fontName(String fontName)
fontName - The font name for this TextStylepublic TextStyleBuilder fontSize(Length fontSize)
fontSize - - The font sizepublic TextStyleBuilder fontSizePercentage(double percentage)
percentage - the font size as a fontSizePercentage.public TextStyleBuilder fontStyleItalic()
public TextStyleBuilder fontStyleNormal()
public TextStyleBuilder fontUnderlineColor(Color color)
color - The color to be used in format #rrggbb e.g. #ff0000 for a red
cell background.public TextStyleBuilder fontUnderlineStyle(TextProperties.Underline style)
style - One of the TextStyle.STYLE_UNDERLINEpublic TextStyleBuilder fontWeightBold()
public TextStyleBuilder fontWeightNormal()
public TextStyleBuilder visible()
Copyright © 2016–2021. All rights reserved.