Package org.apache.batik.bridge
Class SVGTextElementBridge.AttributedStringBuffer
- java.lang.Object
-
- org.apache.batik.bridge.SVGTextElementBridge.AttributedStringBuffer
-
- Enclosing class:
- SVGTextElementBridge
protected static class SVGTextElementBridge.AttributedStringBuffer extends java.lang.ObjectThis class is used to build an AttributedString.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListattributesThe attributes.protected intcountThe number of items.protected intlengthThe length of the attributed string.protected java.util.ListstringsThe strings.
-
Constructor Summary
Constructors Constructor Description AttributedStringBuffer()Creates a new empty AttributedStringBuffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(java.lang.String s, java.util.Map m)Appends a String and its associated attributes.intgetLastChar()Returns the value of the last char or -1.booleanisEmpty()Tells whether this AttributedStringBuffer is empty.intlength()Returns the length in chars of the current Attributed StringvoidstripFirst()Strips the last string character.voidstripLast()Strips the last string character.java.text.AttributedStringtoAttributedString()Builds an attributed string from the content of this buffer.java.lang.StringtoString()
-
-
-
Method Detail
-
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
public void append(java.lang.String s, java.util.Map m)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
public java.text.AttributedString toAttributedString()
Builds an attributed string from the content of this buffer.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-