net.sf.jasperreports.engine
Interface JRFont

All Known Subinterfaces:
JRReportFont
All Known Implementing Classes:
JRBaseFont, JRBaseReportFont, JRDesignReportFont

public interface JRFont

An abstract representation of a font. Fonts in JasperReports are very complex because of the library portability across operating systems and export formats. This interface provides basic font functionality methods for managing font attributes and special PDF font attributes.

Users can define report level fonts that can be referenced by name in text elements. Their default properties can be overriden in each element (for example, a text element can use a report level font and just change its "underline" attribute). All the "own" methods in this class actually return the override values of font properties.

Version:
$Id: JRFont.java,v 1.10 2005/08/22 15:44:50 ionutned Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Method Summary
 java.util.Map getAttributes()
           
 java.lang.String getFontName()
           
 java.util.Map getNonPdfAttributes()
           
 java.lang.String getOwnFontName()
           
 java.lang.String getOwnPdfEncoding()
           
 java.lang.String getOwnPdfFontName()
           
 java.lang.Integer getOwnSize()
           
 java.lang.String getPdfEncoding()
           
 java.lang.String getPdfFontName()
           
 JRReportFont getReportFont()
           
 int getSize()
           
 boolean isBold()
           
 boolean isCachingAttributes()
           
 boolean isItalic()
           
 java.lang.Boolean isOwnBold()
           
 java.lang.Boolean isOwnItalic()
           
 java.lang.Boolean isOwnPdfEmbedded()
           
 java.lang.Boolean isOwnStrikeThrough()
           
 java.lang.Boolean isOwnUnderline()
           
 boolean isPdfEmbedded()
           
 boolean isStrikeThrough()
           
 boolean isUnderline()
           
 void setBold(boolean isBold)
           
 void setFontName(java.lang.String fontName)
           
 void setItalic(boolean isItalic)
           
 void setPdfEmbedded(boolean isPdfEmbedded)
           
 void setPdfEncoding(java.lang.String pdfEncoding)
           
 void setPdfFontName(java.lang.String pdfFontName)
           
 void setSize(int size)
           
 void setStrikeThrough(boolean isStrikeThrough)
           
 void setUnderline(boolean isUnderline)
           
 

Method Detail

getReportFont

public JRReportFont getReportFont()

getFontName

public java.lang.String getFontName()

getOwnFontName

public java.lang.String getOwnFontName()

setFontName

public void setFontName(java.lang.String fontName)

isBold

public boolean isBold()

isOwnBold

public java.lang.Boolean isOwnBold()

setBold

public void setBold(boolean isBold)

isItalic

public boolean isItalic()

isOwnItalic

public java.lang.Boolean isOwnItalic()

setItalic

public void setItalic(boolean isItalic)

isUnderline

public boolean isUnderline()

isOwnUnderline

public java.lang.Boolean isOwnUnderline()

setUnderline

public void setUnderline(boolean isUnderline)

isStrikeThrough

public boolean isStrikeThrough()

isOwnStrikeThrough

public java.lang.Boolean isOwnStrikeThrough()

setStrikeThrough

public void setStrikeThrough(boolean isStrikeThrough)

getSize

public int getSize()

getOwnSize

public java.lang.Integer getOwnSize()

setSize

public void setSize(int size)

getPdfFontName

public java.lang.String getPdfFontName()

getOwnPdfFontName

public java.lang.String getOwnPdfFontName()

setPdfFontName

public void setPdfFontName(java.lang.String pdfFontName)

getPdfEncoding

public java.lang.String getPdfEncoding()

getOwnPdfEncoding

public java.lang.String getOwnPdfEncoding()

setPdfEncoding

public void setPdfEncoding(java.lang.String pdfEncoding)

isPdfEmbedded

public boolean isPdfEmbedded()

isOwnPdfEmbedded

public java.lang.Boolean isOwnPdfEmbedded()

setPdfEmbedded

public void setPdfEmbedded(boolean isPdfEmbedded)

isCachingAttributes

public boolean isCachingAttributes()

getNonPdfAttributes

public java.util.Map getNonPdfAttributes()

getAttributes

public java.util.Map getAttributes()


© 2001-2005 JasperSoft Corporation www.jaspersoft.com