protected static class SVGTextElementBridge.AttributedStringBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
attributes
The attributes.
|
protected int |
count
The number of items.
|
protected int |
length
The length of the attributed string.
|
protected java.util.List |
strings
The strings.
|
Constructor and Description |
---|
AttributedStringBuffer()
Creates a new empty AttributedStringBuffer.
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String s,
java.util.Map m)
Appends a String and its associated attributes.
|
int |
getLastChar()
Returns the value of the last char or -1.
|
boolean |
isEmpty()
Tells whether this AttributedStringBuffer is empty.
|
int |
length()
Returns the length in chars of the current Attributed String
|
void |
stripFirst()
Strips the last string character.
|
void |
stripLast()
Strips the last string character.
|
java.text.AttributedString |
toAttributedString()
Builds an attributed string from the content of this
buffer.
|
java.lang.String |
toString() |
protected java.util.List strings
protected java.util.List attributes
protected int count
protected int length
public AttributedStringBuffer()
public boolean isEmpty()
public int length()
public void append(java.lang.String s, java.util.Map m)
public int getLastChar()
public void stripFirst()
public void stripLast()
public java.text.AttributedString toAttributedString()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2022 Apache Software Foundation. All Rights Reserved.