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 Stringprotected Floatprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Stringprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected JRStyleprotected JRStyleContainerprotected StringFields 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.floatgetStyle()Returns this object's style.Returns the name of an external style which is to be used by this object.protected StyleResolverbooleanisBold()booleanisItalic()booleanbooleanbooleanvoidAlternative setBold method which allows also to reset the "own" isBold property.voidsetFontName(String fontName) voidsetFontSize(Float fontSize) Method which allows also to reset the "own" size property.voidAlternative setItalic method which allows also to reset the "own" isItalic property.voidsetPdfEmbedded(Boolean isPdfEmbedded) Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.voidsetPdfEncoding(String pdfEncoding) voidsetPdfFontName(String pdfFontName) voidsetStrikeThrough(Boolean isStrikeThrough) Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.voidsetUnderline(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, waitMethods 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:
getDefaultStyleProviderin interfaceJRStyleContainer
-
getStyleResolver
-
getStyle
Description copied from interface:JRStyleContainerReturns this object's style.- Specified by:
getStylein interfaceJRStyleContainer- Returns:
- this object's style
-
getStyleNameReference
Description copied from interface:JRStyleContainerReturns the name of an external style which is to be used by this object. External styles are defined intemplatesand are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()is specified for this object.- Specified by:
getStyleNameReferencein interfaceJRStyleContainer- Returns:
- the name of an external style
-
getFontName
- Specified by:
getFontNamein interfaceJRFont
-
getOwnFontName
- Specified by:
getOwnFontNamein interfaceJRFont
-
setFontName
- Specified by:
setFontNamein 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:
isOwnItalicin interfaceJRFont
-
setItalic
Alternative setItalic method which allows also to reset the "own" isItalic property. -
isUnderline
public boolean isUnderline()- Specified by:
isUnderlinein interfaceJRFont
-
isOwnUnderline
- Specified by:
isOwnUnderlinein interfaceJRFont
-
setUnderline
Alternative setUnderline method which allows also to reset the "own" isUnderline property.- Specified by:
setUnderlinein interfaceJRFont
-
isStrikeThrough
public boolean isStrikeThrough()- Specified by:
isStrikeThroughin interfaceJRFont
-
isOwnStrikeThrough
- Specified by:
isOwnStrikeThroughin interfaceJRFont
-
setStrikeThrough
Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.- Specified by:
setStrikeThroughin interfaceJRFont
-
getFontSize
public float getFontSize()- Specified by:
getFontSizein interfaceJRFont
-
getOwnFontSize
- Specified by:
getOwnFontSizein interfaceJRFont
-
setFontSize
Method which allows also to reset the "own" size property.- Specified by:
setFontSizein interfaceJRFont
-
getPdfFontName
- Specified by:
getPdfFontNamein interfaceJRFont
-
getOwnPdfFontName
- Specified by:
getOwnPdfFontNamein interfaceJRFont
-
setPdfFontName
- Specified by:
setPdfFontNamein interfaceJRFont
-
getPdfEncoding
- Specified by:
getPdfEncodingin interfaceJRFont
-
getOwnPdfEncoding
- Specified by:
getOwnPdfEncodingin interfaceJRFont
-
setPdfEncoding
- Specified by:
setPdfEncodingin interfaceJRFont
-
isPdfEmbedded
public boolean isPdfEmbedded()- Specified by:
isPdfEmbeddedin interfaceJRFont
-
isOwnPdfEmbedded
- Specified by:
isOwnPdfEmbeddedin interfaceJRFont
-
setPdfEmbedded
Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.- Specified by:
setPdfEmbeddedin interfaceJRFont
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-