|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.content.ContentContainer
org.jfree.report.content.TextParagraph
A paragraph of an given text content. A paragraph consists of one or more
TextLine
s.
Todo: Can the content size be cached?
Constructor Summary | |
TextParagraph(SizeCalculator calc,
float lineHeight,
java.lang.String reservedLiteral,
boolean trimTextContent)
Creates a new text paragraph using the specified size calculator. |
Method Summary | |
protected static java.lang.String |
clearWhitespaces(java.lang.String text)
Removes all whitespaces from the given String and replaces them with a space character. |
boolean |
isTrimTextContent()
Defines, whether whitespaces were removed from the lines of this paragraph after performing the linebreaking. |
void |
setContent(java.lang.String content,
float x,
float y,
float width,
float height)
Sets the content. |
Methods inherited from class org.jfree.report.content.ContentContainer |
addContentPart, getBounds, getContentForBounds, getContentPart, getContentPartCount, getContentType, getMinimumContentSize, setBounds, setBounds, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextParagraph(SizeCalculator calc, float lineHeight, java.lang.String reservedLiteral, boolean trimTextContent)
calc
- the size calculator.lineHeight
- the height of the lines contained in this paragraph.reservedLiteral
- the text that should be appended if the text does
not fit into the boundstrimTextContent
- defines, whether to remove whitespaces from the start
and end of an line.Method Detail |
public void setContent(java.lang.String content, float x, float y, float width, float height)
content
- the content.x
- the x coordinates for the bounds.y
- the y coordinates for the bounds.width
- the width of the bounds.height
- the height of the bounds.public boolean isTrimTextContent()
protected static java.lang.String clearWhitespaces(java.lang.String text)
text
- the string to process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |