Package org.apache.batik.bridge
Class SVGTextElementBridge.AttributedStringBuffer
java.lang.Object
org.apache.batik.bridge.SVGTextElementBridge.AttributedStringBuffer
- Enclosing class:
SVGTextElementBridge
This class is used to build an AttributedString.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends a String and its associated attributes.int
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 Stringvoid
Strips the last string character.void
Strips the last string character.Builds an attributed string from the content of this buffer.toString()
-
Field Details
-
strings
The strings. -
attributes
The attributes. -
count
protected int countThe number of items. -
length
protected int lengthThe length of the attributed string.
-
-
Constructor Details
-
AttributedStringBuffer
public AttributedStringBuffer()Creates a new empty AttributedStringBuffer.
-
-
Method Details
-
isEmpty
public boolean isEmpty()Tells whether this AttributedStringBuffer is empty. -
length
public int length()Returns the length in chars of the current Attributed String -
append
Appends a String and its associated attributes. -
getLastChar
public int getLastChar()Returns the value of the last char or -1. -
stripFirst
public void stripFirst()Strips the last string character. -
stripLast
public void stripLast()Strips the last string character. -
toAttributedString
Builds an attributed string from the content of this buffer. -
toString
-