Package net.sf.jasperreports.engine
Interface JRFont
-
- All Superinterfaces:
JRStyleContainer
- All Known Subinterfaces:
JRPrintText,JRStaticText,JRTextElement,JRTextField
- All Known Implementing Classes:
JRBaseFont,JRBasePrintText,JRBaseStaticText,JRBaseTextElement,JRBaseTextField,JRDesignFont,JRDesignStaticText,JRDesignTextElement,JRDesignTextField,JRFillStaticText,JRFillTextElement,JRFillTextField,JRRecordedValuesPrintText,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 overridden 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.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_FONT_NAMEstatic java.lang.StringDEFAULT_FONT_SIZEstatic java.lang.StringDEFAULT_PDF_EMBEDDEDstatic java.lang.StringDEFAULT_PDF_ENCODINGstatic java.lang.StringDEFAULT_PDF_FONT_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetFontName()floatgetFontsize()java.lang.StringgetOwnFontName()java.lang.FloatgetOwnFontsize()java.lang.StringgetOwnPdfEncoding()java.lang.StringgetOwnPdfFontName()java.lang.StringgetPdfEncoding()java.lang.StringgetPdfFontName()booleanisBold()booleanisItalic()java.lang.BooleanisOwnBold()java.lang.BooleanisOwnItalic()java.lang.BooleanisOwnPdfEmbedded()java.lang.BooleanisOwnStrikeThrough()java.lang.BooleanisOwnUnderline()booleanisPdfEmbedded()booleanisStrikeThrough()booleanisUnderline()voidsetBold(java.lang.Boolean isBold)voidsetFontName(java.lang.String fontName)voidsetFontSize(java.lang.Float size)voidsetItalic(java.lang.Boolean isItalic)voidsetPdfEmbedded(java.lang.Boolean isPdfEmbedded)voidsetPdfEncoding(java.lang.String pdfEncoding)voidsetPdfFontName(java.lang.String pdfFontName)voidsetStrikeThrough(java.lang.Boolean isStrikeThrough)voidsetUnderline(java.lang.Boolean isUnderline)-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
-
-
-
Field Detail
-
DEFAULT_FONT_NAME
static final java.lang.String DEFAULT_FONT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_FONT_SIZE
static final java.lang.String DEFAULT_FONT_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_PDF_FONT_NAME
static final java.lang.String DEFAULT_PDF_FONT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_PDF_ENCODING
static final java.lang.String DEFAULT_PDF_ENCODING
- See Also:
- Constant Field Values
-
DEFAULT_PDF_EMBEDDED
static final java.lang.String DEFAULT_PDF_EMBEDDED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFontName
java.lang.String getFontName()
-
getOwnFontName
java.lang.String getOwnFontName()
-
setFontName
void setFontName(java.lang.String fontName)
-
isBold
boolean isBold()
-
isOwnBold
java.lang.Boolean isOwnBold()
-
setBold
void setBold(java.lang.Boolean isBold)
-
isItalic
boolean isItalic()
-
isOwnItalic
java.lang.Boolean isOwnItalic()
-
setItalic
void setItalic(java.lang.Boolean isItalic)
-
isUnderline
boolean isUnderline()
-
isOwnUnderline
java.lang.Boolean isOwnUnderline()
-
setUnderline
void setUnderline(java.lang.Boolean isUnderline)
-
isStrikeThrough
boolean isStrikeThrough()
-
isOwnStrikeThrough
java.lang.Boolean isOwnStrikeThrough()
-
setStrikeThrough
void setStrikeThrough(java.lang.Boolean isStrikeThrough)
-
getFontsize
float getFontsize()
-
getOwnFontsize
java.lang.Float getOwnFontsize()
-
setFontSize
void setFontSize(java.lang.Float size)
-
getPdfFontName
java.lang.String getPdfFontName()
-
getOwnPdfFontName
java.lang.String getOwnPdfFontName()
-
setPdfFontName
void setPdfFontName(java.lang.String pdfFontName)
-
getPdfEncoding
java.lang.String getPdfEncoding()
-
getOwnPdfEncoding
java.lang.String getOwnPdfEncoding()
-
setPdfEncoding
void setPdfEncoding(java.lang.String pdfEncoding)
-
isPdfEmbedded
boolean isPdfEmbedded()
-
isOwnPdfEmbedded
java.lang.Boolean isOwnPdfEmbedded()
-
setPdfEmbedded
void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
-
-