|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.text.AbstractElement
com.tensegrity.graphics.text.TextSection
A container for titles and paragraphs.
| Nested Class Summary |
| Nested classes inherited from class com.tensegrity.graphics.text.Element |
Element.ElementIterator |
| Constructor Summary | |
TextSection()
Constructor for TextSection. |
|
| Method Summary | |
void |
addElement(Element element)
Method addElement adds an element to this Element. |
int |
getCharacterCount()
Method getElementCountEx extends the default getElementCount
returns the number of all TextElements contained in this document. |
java.util.List |
getCharacters()
Method getCharacters should return a List with all CharacterElements of this Element implementation. |
java.lang.String |
getHtmlText()
Returns a html document containing all paragraphs and titles of this document. |
java.util.List |
getParagraphs()
Method getParagraphs returns a list with all Paragraphs of this TextSection. |
Title |
getTitle()
Method getTitle returns the first found title from the elements list. |
java.lang.String |
toString()
|
| Methods inherited from class com.tensegrity.graphics.text.AbstractElement |
getElement, getElementCount, getFontFormat, getText, isEmpty, iterator, remove, removeTextElements, setFontFormat, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TextSection()
| Method Detail |
public void addElement(Element element)
Element
addElement in interface ElementaddElement in class AbstractElementElement.addElement(Element)public java.lang.String getHtmlText()
getHtmlText in interface ElementgetHtmlText in class AbstractElementElement.getHtmlText()public int getCharacterCount()
getElementCount
returns the number of all TextElements contained in this document. According
to getElementEx(int), which lets you get a single CharacterElement
from the elements.
public Title getTitle()
public java.util.List getParagraphs()
public java.lang.String toString()
Object.toString()public java.util.List getCharacters()
AbstractElement
getCharacters in class AbstractElementAbstractElement.getCharacters()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||