public class Paragraph extends Object
Constructor and Description |
---|
Paragraph(int lineLength)
Constructs an HtmlParagraph with a specified maximum line length.
|
Modifier and Type | Method and Description |
---|---|
void |
appendText(String text)
Appends a bunch of words to the paragraph.
|
void |
appendWord(String word)
Appends another word to this paragraph.
|
Collection<String> |
getLines()
Returns the lines in this paragraph.
|
String |
toString() |
public Paragraph(int lineLength)
lineLength
- maximum line lengthpublic void appendWord(String word)
word
- the wordpublic void appendText(String text)
text
- the text to add to the paragraphpublic Collection<String> getLines()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.