|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.common.Paragraph
public class Paragraph
A utility object useful for formatting paragraph output.
Represents a paragraph, made of lines. The whole paragraph has a limit for the line length. Words can be added, the class will reformat the paragraph according to max. line length.
| Constructor Summary | |
|---|---|
Paragraph(int lineLength)
Constructs an HtmlParagraph with a specified maximum line length. |
|
| Method Summary | |
|---|---|
void |
appendText(java.lang.String text)
Appends a bunch of words to the paragraph. |
void |
appendWord(java.lang.String word)
Appends another word to this paragraph. |
java.util.Collection |
getLines()
Returns the lines in this paragraph. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Paragraph(int lineLength)
lineLength - maximum line length| Method Detail |
|---|
public void appendWord(java.lang.String word)
word - the wordpublic void appendText(java.lang.String text)
text - the text to add to the paragraphpublic java.util.Collection getLines()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||