public static class DefaultTextAttribute.Builder extends Object
Constructor and Description |
---|
Builder()
Creates a new builder
|
Builder(String attribute)
Creates a new builder with the specified attribute name
|
Modifier and Type | Method and Description |
---|---|
DefaultTextAttribute.Builder |
add(int val)
Adds a new attribute with the specified width
|
DefaultTextAttribute.Builder |
add(TextAttribute data)
Adds a text attribute to the list of attributes
|
DefaultTextAttribute |
build(int length)
Creates a new default text attribute based on the current
state of the builder
|
public Builder()
public Builder(String attribute)
attribute
- the attribute namepublic DefaultTextAttribute.Builder add(TextAttribute data)
data
- the attributepublic DefaultTextAttribute.Builder add(int val)
val
- the width of the attributepublic DefaultTextAttribute build(int length)
length
- the total length of the contained attributes