|
|||||||||||
| 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.Paragraph
A Paragraph represents a structure within a TextSection consisting of a Title, CharacterElements and other Paragraphs.
| Nested Class Summary |
| Nested classes inherited from class com.tensegrity.graphics.text.Element |
Element.ElementIterator |
| Field Summary | |
static int |
CENTER
Alignment constants. |
static int |
JUSTIFY
Alignment constants. |
static int |
LEFT
Alignment constants. |
static int |
RIGHT
Alignment constants. |
| Constructor Summary | |
Paragraph(java.lang.String s)
Default constructor for a Paragraph. |
|
| Method Summary | |
protected java.lang.String |
getAlignmentTag()
Method getAlignmentTag returns the currently set alignment of this paragraph as HTML constant string. |
int |
getCharacterCount()
Method getTextElementCount returns the number of CharacterElements in this paragraph including the title, all CharacterElements and all subparagraphs. |
java.util.List |
getCharacters()
Returns all elements from the title, all CharacterElement and all subparagraphs. |
java.lang.String |
getHtmlText()
Returns this paragraph as html text. |
protected Title |
getTitle()
Method getTitle returns the first found title from the elements list. |
void |
setAlignment(int align)
Method setAlignment sets the alignment for this paragraph. |
java.lang.String |
toString()
|
| Methods inherited from class com.tensegrity.graphics.text.AbstractElement |
addElement, 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 |
| Field Detail |
public static final int LEFT
public static final int RIGHT
public static final int CENTER
public static final int JUSTIFY
| Constructor Detail |
public Paragraph(java.lang.String s)
s - the text for this paragraph as String.| Method Detail |
public java.lang.String getHtmlText()
getHtmlText in interface ElementgetHtmlText in class AbstractElementElement.getHtmlText()public void setAlignment(int align)
align - the alignement constant.public int getCharacterCount()
protected Title getTitle()
protected java.lang.String getAlignmentTag()
public java.lang.String toString()
Object.toString()public java.util.List getCharacters()
getCharacters in class AbstractElementAbstractElement.getCharacters()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||