public static class StyleText.Builder extends Style.Builder<StyleText.Builder>
backgroundColor, height, heightUnit, marginBottom, marginLeft, marginRight, marginTop, marginUnit, width, widthUnit
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StyleText |
build() |
StyleText.Builder |
color(java.awt.Color color)
Color for the text
|
StyleText.Builder |
color(java.lang.String color)
Color for the text
|
StyleText.Builder |
font(java.lang.String font)
Specify the font to be used for the text
|
StyleText.Builder |
fontSize(double size)
Size of the font (pt)
|
StyleText.Builder |
underline(boolean underline)
If true: text should be underlined (default: not)
|
backgroundColor, backgroundColor, height, margin, margin, width
public StyleText.Builder font(java.lang.String font)
public StyleText.Builder fontSize(double size)
public StyleText.Builder underline(boolean underline)
public StyleText.Builder color(java.awt.Color color)
public StyleText.Builder color(java.lang.String color)
public StyleText build()