org.jfree.report.content
Class TextContent

java.lang.Object
  extended byorg.jfree.report.content.ContentContainer
      extended byorg.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

Field Summary
static java.lang.String DEBUG_TEXTCONTENT_KEY
           
 
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 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
 

Field Detail

DEBUG_TEXTCONTENT_KEY

public static final java.lang.String DEBUG_TEXTCONTENT_KEY
See Also:
Constant Field Values
Constructor Detail

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 line
bounds - the bounds.
ot - the size calculator.
reservedLiteral - the text that should be appended if the text does not fit into the bounds
trimTextContent - defines, whether to remove whitespaces from the start and end of an line.