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