public class DefaultTextAttribute extends Object implements TextAttribute
Modifier and Type | Class and Description |
---|---|
static class |
DefaultTextAttribute.Builder
Provides a builder for a default text attribute
|
Modifier and Type | Field and Description |
---|---|
protected int |
length |
Modifier | Constructor and Description |
---|---|
protected |
DefaultTextAttribute(int length,
DefaultTextAttribute.Builder builder) |
Modifier and Type | Method and Description |
---|---|
String |
getDictionaryIdentifier()
Gets the dictionary identifier that applies to this text
attribute.
|
int |
getWidth()
Gets the width of this object
|
boolean |
hasChildren()
Returns true if this object has text attribute children.
|
Iterator<TextAttribute> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected DefaultTextAttribute(int length, DefaultTextAttribute.Builder builder)
public int getWidth()
TextAttribute
getWidth
in interface TextAttribute
public boolean hasChildren()
TextAttribute
hasChildren
in interface TextAttribute
public String getDictionaryIdentifier()
TextAttribute
getDictionaryIdentifier
in interface TextAttribute
public Iterator<TextAttribute> iterator()
iterator
in interface Iterable<TextAttribute>