Class StyleText.Builder
- java.lang.Object
-
- org.deeplearning4j.ui.api.Style.Builder<StyleText.Builder>
-
- org.deeplearning4j.ui.components.text.style.StyleText.Builder
-
- Enclosing class:
- StyleText
public static class StyleText.Builder extends Style.Builder<StyleText.Builder>
-
-
Field Summary
-
Fields inherited from class org.deeplearning4j.ui.api.Style.Builder
backgroundColor, height, heightUnit, marginBottom, marginLeft, marginRight, marginTop, marginUnit, width, widthUnit
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyleTextbuild()StyleText.Buildercolor(Color color)Color for the textStyleText.Buildercolor(String color)Color for the textStyleText.Builderfont(String font)Specify the font to be used for the textStyleText.BuilderfontSize(double size)Size of the font (pt)StyleText.Builderunderline(boolean underline)If true: text should be underlined (default: not)StyleText.BuilderwhitespacePre(boolean whitespacePre)If set to true: add a "white-space: pre" to the style.-
Methods inherited from class org.deeplearning4j.ui.api.Style.Builder
backgroundColor, backgroundColor, height, margin, margin, width
-
-
-
-
Method Detail
-
font
public StyleText.Builder font(String font)
Specify the font to be used for the text
-
fontSize
public StyleText.Builder fontSize(double size)
Size of the font (pt)
-
underline
public StyleText.Builder underline(boolean underline)
If true: text should be underlined (default: not)
-
color
public StyleText.Builder color(Color color)
Color for the text
-
color
public StyleText.Builder color(String color)
Color for the text
-
whitespacePre
public StyleText.Builder whitespacePre(boolean whitespacePre)
If set to true: add a "white-space: pre" to the style. In effect, this stops the representation from compressing the whitespace characters, and messing up/removing text that contains newlines, tabs, etc.
-
build
public StyleText build()
-
-