|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public static final java.lang.String DEFAULT_FONT_NAME
public static final boolean DEFAULT_FONT_BOLD
public static final boolean DEFAULT_FONT_ITALIC
public static final boolean DEFAULT_FONT_UNDERLINE
public static final boolean DEFAULT_FONT_STRIKETHROUGH
public static final int DEFAULT_FONT_SIZE
public static final java.lang.String DEFAULT_PDF_FONT_NAME
public static final java.lang.String DEFAULT_PDF_ENCODING
public static final boolean DEFAULT_PDF_EMBEDDED
Method Detail |
public JRReportFont getReportFont()
public void setReportFont(JRReportFont reportFont)
public java.lang.String getFontName()
public java.lang.String getOwnFontName()
public void setFontName(java.lang.String fontName)
public boolean isBold()
public java.lang.Boolean isOwnBold()
public void setBold(boolean isBold)
public void setBold(java.lang.Boolean isBold)
public boolean isItalic()
public java.lang.Boolean isOwnItalic()
public void setItalic(boolean isItalic)
public void setItalic(java.lang.Boolean isItalic)
public boolean isUnderline()
public java.lang.Boolean isOwnUnderline()
public void setUnderline(boolean isUnderline)
public void setUnderline(java.lang.Boolean isUnderline)
public boolean isStrikeThrough()
public java.lang.Boolean isOwnStrikeThrough()
public void setStrikeThrough(boolean isStrikeThrough)
public void setStrikeThrough(java.lang.Boolean isStrikeThrough)
public int getSize()
getFontSize()
.
public java.lang.Integer getOwnSize()
getOwnFontSize()
.
public void setSize(int size)
setFontSize(int)
.
public void setSize(java.lang.Integer size)
setFontSize(Integer)
.
public int getFontSize()
public java.lang.Integer getOwnFontSize()
public void setFontSize(int fontSize)
public void setFontSize(java.lang.Integer fontSize)
public java.lang.String getPdfFontName()
public java.lang.String getOwnPdfFontName()
public void setPdfFontName(java.lang.String pdfFontName)
public java.lang.String getPdfEncoding()
public java.lang.String getOwnPdfEncoding()
public void setPdfEncoding(java.lang.String pdfEncoding)
public boolean isPdfEmbedded()
public java.lang.Boolean isOwnPdfEmbedded()
public void setPdfEmbedded(boolean isPdfEmbedded)
public void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |