public class DotLabelBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DotLabelBuilder.FontBuilder |
| Constructor and Description |
|---|
DotLabelBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DotLabelBuilder |
bold(String text)
Add bold text.
|
String |
build()
Builds the label.
|
DotLabelBuilder.FontBuilder |
font()
Configure font options.
|
DotLabelBuilder |
italic(String text)
Add italic text.
|
DotLabelBuilder |
newLine()
Add a line break.
|
DotLabelBuilder |
smartNewLine()
Add a line only if:
The label is not empty
The label does not already end with a line break
.
|
DotLabelBuilder |
text(String text)
Add the given text.
|
DotLabelBuilder |
underline(String text)
Add underlined text.
|
public DotLabelBuilder text(String text)
text - Text.public DotLabelBuilder italic(String text)
text - Text.public DotLabelBuilder bold(String text)
text - Text.public DotLabelBuilder underline(String text)
text - Text.public DotLabelBuilder newLine()
public DotLabelBuilder smartNewLine()
public DotLabelBuilder.FontBuilder font()
public String build()
Copyright © 2017. All rights reserved.