net.sf.jasperreports.engine
Interface JRFont

All Superinterfaces:
JRStyleContainer
All Known Subinterfaces:
JRPrintText, JRReportFont, JRStaticText, JRTextElement, JRTextField
All Known Implementing Classes:
JRBaseFont, JRBasePrintText, JRBaseReportFont, JRBaseStaticText, JRBaseTextElement, JRBaseTextField, JRDesignReportFont, JRDesignStaticText, JRDesignTextElement, JRDesignTextField, JRFillStaticText, JRFillTextElement, JRFillTextField, JRTemplatePrintText, JRTemplateText

public interface JRFont
extends JRStyleContainer

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.14 2005/11/28 11:11:00 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
static boolean DEFAULT_FONT_BOLD
           
static boolean DEFAULT_FONT_ITALIC
           
static java.lang.String DEFAULT_FONT_NAME
           
static int DEFAULT_FONT_SIZE
           
static boolean DEFAULT_FONT_STRIKETHROUGH
           
static boolean DEFAULT_FONT_UNDERLINE
           
static boolean DEFAULT_PDF_EMBEDDED
           
static java.lang.String DEFAULT_PDF_ENCODING
           
static java.lang.String DEFAULT_PDF_FONT_NAME
           
 
Method Summary
 java.lang.String getFontName()
           
 int getFontSize()
           
 java.lang.String getOwnFontName()
           
 java.lang.Integer getOwnFontSize()
           
 java.lang.String getOwnPdfEncoding()
           
 java.lang.String getOwnPdfFontName()
           
 java.lang.Integer getOwnSize()
          Deprecated. Replaced by getOwnFontSize().
 java.lang.String getPdfEncoding()
           
 java.lang.String getPdfFontName()
           
 JRReportFont getReportFont()
           
 int getSize()
          Deprecated. Replaced by getFontSize().
 boolean isBold()
           
 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 setBold(java.lang.Boolean isBold)
           
 void setFontName(java.lang.String fontName)
           
 void setFontSize(int fontSize)
           
 void setFontSize(java.lang.Integer fontSize)
           
 void setItalic(boolean isItalic)
           
 void setItalic(java.lang.Boolean isItalic)
           
 void setPdfEmbedded(boolean isPdfEmbedded)
           
 void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
           
 void setPdfEncoding(java.lang.String pdfEncoding)
           
 void setPdfFontName(java.lang.String pdfFontName)
           
 void setReportFont(JRReportFont reportFont)
           
 void setSize(int size)
          Deprecated. Replaced by setFontSize(int).
 void setSize(java.lang.Integer size)
          Deprecated. Replaced by setFontSize(Integer).
 void setStrikeThrough(boolean isStrikeThrough)
           
 void setStrikeThrough(java.lang.Boolean isStrikeThrough)
           
 void setUnderline(boolean isUnderline)
           
 void setUnderline(java.lang.Boolean isUnderline)
           
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle
 

Field Detail

DEFAULT_FONT_NAME

public static final java.lang.String DEFAULT_FONT_NAME
See Also:
Constant Field Values

DEFAULT_FONT_BOLD

public static final boolean DEFAULT_FONT_BOLD
See Also:
Constant Field Values

DEFAULT_FONT_ITALIC

public static final boolean DEFAULT_FONT_ITALIC
See Also:
Constant Field Values

DEFAULT_FONT_UNDERLINE

public static final boolean DEFAULT_FONT_UNDERLINE
See Also:
Constant Field Values

DEFAULT_FONT_STRIKETHROUGH

public static final boolean DEFAULT_FONT_STRIKETHROUGH
See Also:
Constant Field Values

DEFAULT_FONT_SIZE

public static final int DEFAULT_FONT_SIZE
See Also:
Constant Field Values

DEFAULT_PDF_FONT_NAME

public static final java.lang.String DEFAULT_PDF_FONT_NAME
See Also:
Constant Field Values

DEFAULT_PDF_ENCODING

public static final java.lang.String DEFAULT_PDF_ENCODING
See Also:
Constant Field Values

DEFAULT_PDF_EMBEDDED

public static final boolean DEFAULT_PDF_EMBEDDED
See Also:
Constant Field Values
Method Detail

getReportFont

public JRReportFont getReportFont()

setReportFont

public void setReportFont(JRReportFont reportFont)

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)

setBold

public void setBold(java.lang.Boolean isBold)

isItalic

public boolean isItalic()

isOwnItalic

public java.lang.Boolean isOwnItalic()

setItalic

public void setItalic(boolean isItalic)

setItalic

public void setItalic(java.lang.Boolean isItalic)

isUnderline

public boolean isUnderline()

isOwnUnderline

public java.lang.Boolean isOwnUnderline()

setUnderline

public void setUnderline(boolean isUnderline)

setUnderline

public void setUnderline(java.lang.Boolean isUnderline)

isStrikeThrough

public boolean isStrikeThrough()

isOwnStrikeThrough

public java.lang.Boolean isOwnStrikeThrough()

setStrikeThrough

public void setStrikeThrough(boolean isStrikeThrough)

setStrikeThrough

public void setStrikeThrough(java.lang.Boolean isStrikeThrough)

getSize

public int getSize()
Deprecated. Replaced by getFontSize().


getOwnSize

public java.lang.Integer getOwnSize()
Deprecated. Replaced by getOwnFontSize().


setSize

public void setSize(int size)
Deprecated. Replaced by setFontSize(int).


setSize

public void setSize(java.lang.Integer size)
Deprecated. Replaced by setFontSize(Integer).


getFontSize

public int getFontSize()

getOwnFontSize

public java.lang.Integer getOwnFontSize()

setFontSize

public void setFontSize(int fontSize)

setFontSize

public void setFontSize(java.lang.Integer fontSize)

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)

setPdfEmbedded

public void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)


© 2001-2005 JasperSoft Corporation www.jaspersoft.com