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 String
DEFAULT_FONT_NAME
static String
DEFAULT_FONT_SIZE
static String
DEFAULT_PDF_EMBEDDED
static String
DEFAULT_PDF_ENCODING
static String
DEFAULT_PDF_FONT_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getFontName()
float
getFontSize()
String
getOwnFontName()
Float
getOwnFontSize()
String
getOwnPdfEncoding()
String
getOwnPdfFontName()
String
getPdfEncoding()
String
getPdfFontName()
boolean
isBold()
boolean
isItalic()
Boolean
isOwnBold()
Boolean
isOwnItalic()
Boolean
isOwnPdfEmbedded()
Boolean
isOwnStrikeThrough()
Boolean
isOwnUnderline()
boolean
isPdfEmbedded()
boolean
isStrikeThrough()
boolean
isUnderline()
void
setBold(Boolean isBold)
void
setFontName(String fontName)
void
setFontSize(Float size)
void
setItalic(Boolean isItalic)
void
setPdfEmbedded(Boolean isPdfEmbedded)
void
setPdfEncoding(String pdfEncoding)
void
setPdfFontName(String pdfFontName)
void
setStrikeThrough(Boolean isStrikeThrough)
void
setUnderline(Boolean isUnderline)
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
-
-
-
Field Detail
-
DEFAULT_FONT_NAME
static final String DEFAULT_FONT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_FONT_SIZE
static final String DEFAULT_FONT_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_PDF_FONT_NAME
static final String DEFAULT_PDF_FONT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_PDF_ENCODING
static final String DEFAULT_PDF_ENCODING
- See Also:
- Constant Field Values
-
DEFAULT_PDF_EMBEDDED
static final String DEFAULT_PDF_EMBEDDED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFontName
String getFontName()
-
getOwnFontName
String getOwnFontName()
-
setFontName
void setFontName(String fontName)
-
isBold
boolean isBold()
-
isOwnBold
Boolean isOwnBold()
-
setBold
void setBold(Boolean isBold)
-
isItalic
boolean isItalic()
-
isOwnItalic
Boolean isOwnItalic()
-
setItalic
void setItalic(Boolean isItalic)
-
isUnderline
boolean isUnderline()
-
isOwnUnderline
Boolean isOwnUnderline()
-
setUnderline
void setUnderline(Boolean isUnderline)
-
isStrikeThrough
boolean isStrikeThrough()
-
isOwnStrikeThrough
Boolean isOwnStrikeThrough()
-
setStrikeThrough
void setStrikeThrough(Boolean isStrikeThrough)
-
getFontSize
float getFontSize()
-
getOwnFontSize
Float getOwnFontSize()
-
setFontSize
void setFontSize(Float size)
-
getPdfFontName
String getPdfFontName()
-
getOwnPdfFontName
String getOwnPdfFontName()
-
setPdfFontName
void setPdfFontName(String pdfFontName)
-
getPdfEncoding
String getPdfEncoding()
-
getOwnPdfEncoding
String getOwnPdfEncoding()
-
setPdfEncoding
void setPdfEncoding(String pdfEncoding)
-
isPdfEmbedded
boolean isPdfEmbedded()
-
isOwnPdfEmbedded
Boolean isOwnPdfEmbedded()
-
setPdfEmbedded
void setPdfEmbedded(Boolean isPdfEmbedded)
-
-