org.apache.batik.bridge

Class SVGTextElementBridge.AttributedStringBuffer

protected static class SVGTextElementBridge.AttributedStringBuffer extends Object

This class is used to build an AttributedString.
Field Summary
protected Listattributes
The attributes.
protected intcount
The number of items.
protected intlength
The length of the attributed string.
protected Liststrings
The strings.
Constructor Summary
AttributedStringBuffer()
Creates a new empty AttributedStringBuffer.
Method Summary
voidappend(String s, 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 String
voidstripFirst()
Strips the last string character.
voidstripLast()
Strips the last string character.
AttributedStringtoAttributedString()
Builds an attributed string from the content of this buffer.
StringtoString()

Field Detail

attributes

protected List attributes
The attributes.

count

protected int count
The number of items.

length

protected int length
The length of the attributed string.

strings

protected List strings
The strings.

Constructor Detail

AttributedStringBuffer

public AttributedStringBuffer()
Creates a new empty AttributedStringBuffer.

Method Detail

append

public void append(String s, Map m)
Appends a String and its associated attributes.

getLastChar

public int getLastChar()
Returns the value of the last char or -1.

isEmpty

public boolean isEmpty()
Tells whether this AttributedStringBuffer is empty.

length

public int length()
Returns the length in chars of the current Attributed String

stripFirst

public void stripFirst()
Strips the last string character.

stripLast

public void stripLast()
Strips the last string character.

toAttributedString

public AttributedString toAttributedString()
Builds an attributed string from the content of this buffer.

toString

public String toString()
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.