com.jrefinery.report.targets.support.itext
Class BaseFontRecord

java.lang.Object
  extended bycom.jrefinery.report.targets.support.itext.BaseFontRecord

public class BaseFontRecord
extends java.lang.Object

A PDF font record.

Author:
Thomas Morgner

Constructor Summary
BaseFontRecord()
          Creates a new font record.
 
Method Summary
 BaseFontRecordKey createKey()
          Creates a font record key.
 com.lowagie.text.pdf.BaseFont getBaseFont()
          Returns the iText BaseFont.
 java.lang.String getEncoding()
          Returns the encoding.
 FontDefinition getFontDefinition()
          Returns the AWT font.
 float getFontHeight()
          Returns the font height.
 java.lang.String getLogicalName()
          Returns the logical name of the font.
 boolean isEmbedded()
          Returns true if the font should be embedded in the PDF output, and false if not.
 void setBaseFont(com.lowagie.text.pdf.BaseFont baseFont)
          Sets the iText BaseFont.
 void setEmbedded(boolean embedded)
          Sets the flag that controls whether or not this font will be embedded in the PDF output.
 void setEncoding(java.lang.String encoding)
          Sets the encoding.
 void setFontDefinition(FontDefinition awtFont)
          Sets the AWT font.
 void setLogicalName(java.lang.String logicalName)
          Sets the logical name of the font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFontRecord

public BaseFontRecord()
Creates a new font record.

Method Detail

createKey

public BaseFontRecordKey createKey()
Creates a font record key.

Returns:
the font record key.

getEncoding

public java.lang.String getEncoding()
Returns the encoding.

Returns:
the encoding.

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding.

Parameters:
encoding - the encoding.

isEmbedded

public boolean isEmbedded()
Returns true if the font should be embedded in the PDF output, and false if not.

Returns:
true or false.

setEmbedded

public void setEmbedded(boolean embedded)
Sets the flag that controls whether or not this font will be embedded in the PDF output.

Parameters:
embedded - the flag.

getLogicalName

public java.lang.String getLogicalName()
Returns the logical name of the font.

Returns:
the logical name.

setLogicalName

public void setLogicalName(java.lang.String logicalName)
Sets the logical name of the font.

Parameters:
logicalName - the logical name.

getFontDefinition

public FontDefinition getFontDefinition()
Returns the AWT font.

Returns:
the AWT font.

setFontDefinition

public void setFontDefinition(FontDefinition awtFont)
Sets the AWT font.

Parameters:
awtFont - the AWT font.

getBaseFont

public com.lowagie.text.pdf.BaseFont getBaseFont()
Returns the iText BaseFont.

Returns:
the itext BaseFont.

setBaseFont

public void setBaseFont(com.lowagie.text.pdf.BaseFont baseFont)
Sets the iText BaseFont.

Parameters:
baseFont - the iText BaseFont.

getFontHeight

public float getFontHeight()
Returns the font height.

Returns:
the font height.