org.jfree.report.content
Class TextContent
java.lang.Object
org.jfree.report.content.ContentContainer
org.jfree.report.content.TextContent
- All Implemented Interfaces:
- Content
- public class TextContent
- extends ContentContainer
A container for text content. The content will be split into paragraphs.
- Author:
- Thomas Morgner
- See Also:
TextParagraph
Constructor Summary |
TextContent(java.lang.String value,
float lineHeight,
java.awt.geom.Rectangle2D bounds,
SizeCalculator ot,
java.lang.String reservedLiteral,
boolean trimTextContent)
Creates a new container for text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEBUG_TEXTCONTENT_KEY
public static final java.lang.String DEBUG_TEXTCONTENT_KEY
- See Also:
- Constant Field Values
TextContent
public TextContent(java.lang.String value,
float lineHeight,
java.awt.geom.Rectangle2D bounds,
SizeCalculator ot,
java.lang.String reservedLiteral,
boolean trimTextContent)
- Creates a new container for text. The line height can be used to extend the height
of a single text line. It can not be used to narrow down the text line.
- Parameters:
value
- the text.lineHeight
- the height of a text linebounds
- the bounds.ot
- the size calculator.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.