Package net.sf.jasperreports.engine.base
Class JRBaseFont
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseFont
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChangeEventsSupport
,JRCloneable
,JRFont
,JRStyleContainer
- Direct Known Subclasses:
JRDesignFont
public class JRBaseFont
extends Object
implements JRFont, Serializable, JRChangeEventsSupport, JRCloneable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected Float
protected Boolean
protected Boolean
protected Boolean
protected Boolean
protected Boolean
protected String
protected String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected JRStyle
protected JRStyleContainer
protected String
Fields inherited from interface net.sf.jasperreports.engine.JRFont
DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_PDF_EMBEDDED, DEFAULT_PDF_ENCODING, DEFAULT_PDF_FONT_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionJRBaseFont
(Map<AttributedCharacterIterator.Attribute, Object> attributes) JRBaseFont
(JRStyleContainer styleContainer) JRBaseFont
(JRStyleContainer styleContainer, JRFont font) JRBaseFont
(JRStyleContainer styleContainer, JRFont font, JRAbstractObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns the property change support object for this instance.float
getStyle()
Returns this object's style.Returns the name of an external style which is to be used by this object.protected StyleResolver
boolean
isBold()
boolean
isItalic()
boolean
boolean
boolean
void
Alternative setBold method which allows also to reset the "own" isBold property.void
setFontName
(String fontName) void
setFontSize
(Float fontSize) Method which allows also to reset the "own" size property.void
Alternative setItalic method which allows also to reset the "own" isItalic property.void
setPdfEmbedded
(Boolean isPdfEmbedded) Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.void
setPdfEncoding
(String pdfEncoding) void
setPdfFontName
(String pdfFontName) void
setStrikeThrough
(Boolean isStrikeThrough) Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.void
setUnderline
(Boolean isUnderline) Alternative setUnderline method which allows also to reset the "own" isUnderline property.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getStyleName
-
Field Details
-
PROPERTY_BOLD
- See Also:
-
PROPERTY_FONT_NAME
- See Also:
-
PROPERTY_FONT_SIZE
- See Also:
-
PROPERTY_ITALIC
- See Also:
-
PROPERTY_PDF_EMBEDDED
- See Also:
-
PROPERTY_PDF_ENCODING
- See Also:
-
PROPERTY_PDF_FONT_NAME
- See Also:
-
PROPERTY_STRIKE_THROUGH
- See Also:
-
PROPERTY_UNDERLINE
- See Also:
-
styleContainer
-
style
-
styleNameReference
-
fontName
-
isBold
-
isItalic
-
isUnderline
-
isStrikeThrough
-
fontSize
-
pdfFontName
-
pdfEncoding
-
isPdfEmbedded
-
-
Constructor Details
-
JRBaseFont
public JRBaseFont() -
JRBaseFont
-
JRBaseFont
-
JRBaseFont
-
JRBaseFont
-
-
Method Details
-
getDefaultStyleProvider
- Specified by:
getDefaultStyleProvider
in interfaceJRStyleContainer
-
getStyleResolver
-
getStyle
Description copied from interface:JRStyleContainer
Returns this object's style.- Specified by:
getStyle
in interfaceJRStyleContainer
- Returns:
- this object's style
-
getStyleNameReference
Description copied from interface:JRStyleContainer
Returns the name of an external style which is to be used by this object. External styles are defined intemplates
and are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()
is specified for this object.- Specified by:
getStyleNameReference
in interfaceJRStyleContainer
- Returns:
- the name of an external style
-
getFontName
- Specified by:
getFontName
in interfaceJRFont
-
getOwnFontName
- Specified by:
getOwnFontName
in interfaceJRFont
-
setFontName
- Specified by:
setFontName
in interfaceJRFont
-
isBold
public boolean isBold() -
isOwnBold
-
setBold
Alternative setBold method which allows also to reset the "own" isBold property. -
isItalic
public boolean isItalic() -
isOwnItalic
- Specified by:
isOwnItalic
in interfaceJRFont
-
setItalic
Alternative setItalic method which allows also to reset the "own" isItalic property. -
isUnderline
public boolean isUnderline()- Specified by:
isUnderline
in interfaceJRFont
-
isOwnUnderline
- Specified by:
isOwnUnderline
in interfaceJRFont
-
setUnderline
Alternative setUnderline method which allows also to reset the "own" isUnderline property.- Specified by:
setUnderline
in interfaceJRFont
-
isStrikeThrough
public boolean isStrikeThrough()- Specified by:
isStrikeThrough
in interfaceJRFont
-
isOwnStrikeThrough
- Specified by:
isOwnStrikeThrough
in interfaceJRFont
-
setStrikeThrough
Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.- Specified by:
setStrikeThrough
in interfaceJRFont
-
getFontSize
public float getFontSize()- Specified by:
getFontSize
in interfaceJRFont
-
getOwnFontSize
- Specified by:
getOwnFontSize
in interfaceJRFont
-
setFontSize
Method which allows also to reset the "own" size property.- Specified by:
setFontSize
in interfaceJRFont
-
getPdfFontName
- Specified by:
getPdfFontName
in interfaceJRFont
-
getOwnPdfFontName
- Specified by:
getOwnPdfFontName
in interfaceJRFont
-
setPdfFontName
- Specified by:
setPdfFontName
in interfaceJRFont
-
getPdfEncoding
- Specified by:
getPdfEncoding
in interfaceJRFont
-
getOwnPdfEncoding
- Specified by:
getOwnPdfEncoding
in interfaceJRFont
-
setPdfEncoding
- Specified by:
setPdfEncoding
in interfaceJRFont
-
isPdfEmbedded
public boolean isPdfEmbedded()- Specified by:
isPdfEmbedded
in interfaceJRFont
-
isOwnPdfEmbedded
- Specified by:
isOwnPdfEmbedded
in interfaceJRFont
-
setPdfEmbedded
Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.- Specified by:
setPdfEmbedded
in interfaceJRFont
-
clone
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
getEventSupport
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-