com.jrefinery.report.targets.table.rtf
Class RTFTextCellStyle

java.lang.Object
  |
  +--com.jrefinery.report.targets.table.rtf.RTFCellStyle
        |
        +--com.jrefinery.report.targets.table.rtf.RTFTextCellStyle

public class RTFTextCellStyle
extends RTFCellStyle


Constructor Summary
RTFTextCellStyle(FontDefinition font, com.lowagie.text.pdf.BaseFont baseFont, java.awt.Color fontColor, ElementAlignment verticalAlignment, ElementAlignment horizontalAlignment)
          Creates a new RTFTextCellStyle.
 
Method Summary
 void applyTextStyle(com.lowagie.text.Chunk p)
          Define the font for the given iText Chunk.
 FontDefinition getFont()
          Gets the font definition used in the cell.
 java.awt.Color getFontColor()
          Gets the font color for the cell.
 
Methods inherited from class com.jrefinery.report.targets.table.rtf.RTFCellStyle
applyAlignment, equals, getHorizontalAlignment, getVerticalAlignment, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFTextCellStyle

public RTFTextCellStyle(FontDefinition font,
                        com.lowagie.text.pdf.BaseFont baseFont,
                        java.awt.Color fontColor,
                        ElementAlignment verticalAlignment,
                        ElementAlignment horizontalAlignment)
Creates a new RTFTextCellStyle.

Parameters:
font - the font definition.
fontColor - the font color.
verticalAlignment - the vertical text alignment.
horizontalAlignment - the horizontal text alignment.
Throws:
java.lang.NullPointerException - if one of the alignment parameters is null.
Method Detail

getFont

public FontDefinition getFont()
Gets the font definition used in the cell.

Returns:
the font definition.

getFontColor

public java.awt.Color getFontColor()
Gets the font color for the cell.

Returns:
the font color.

applyTextStyle

public void applyTextStyle(com.lowagie.text.Chunk p)
Define the font for the given iText Chunk.

Parameters:
p - the iText chunk, which should be formated.