net.sf.jasperreports.engine.base
Class JRBaseFont

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseFont
All Implemented Interfaces:
JRFont, java.io.Serializable
Direct Known Subclasses:
JRBaseReportFont, JRDesignFont

public class JRBaseFont
extends java.lang.Object
implements JRFont, java.io.Serializable

Version:
$Id: JRBaseFont.java,v 1.37 2005/09/07 13:58:25 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.util.Map attributes
           
protected  JRDefaultFontProvider defaultFontProvider
           
protected  java.lang.String fontName
           
protected  java.lang.Boolean isBold
           
protected  boolean isCachingAttributes
           
protected  java.lang.Boolean isItalic
           
protected  java.lang.Boolean isPdfEmbedded
           
protected  java.lang.Boolean isStrikeThrough
           
protected  java.lang.Boolean isUnderline
           
protected  java.lang.String pdfEncoding
           
protected  java.lang.String pdfFontName
           
protected  JRReportFont reportFont
           
protected  java.lang.Integer size
           
 
Constructor Summary
  JRBaseFont()
           
protected JRBaseFont(JRDefaultFontProvider defaultFontProvider)
           
  JRBaseFont(JRDefaultFontProvider defaultFontProvider, JRReportFont reportFont, JRFont font)
           
  JRBaseFont(java.util.Map attributes)
           
 
Method Summary
 java.util.Map getAttributes()
           
 JRDefaultFontProvider getDefaultFontProvider()
           
 java.lang.String getFontName()
           
 java.util.Map getNonPdfAttributes()
           
 java.lang.String getOwnFontName()
           
 java.lang.String getOwnPdfEncoding()
           
 java.lang.String getOwnPdfFontName()
           
 java.lang.Integer getOwnSize()
           
 java.lang.String getPdfEncoding()
           
 java.lang.String getPdfFontName()
           
 JRReportFont getReportFont()
           
 int getSize()
           
 boolean isBold()
           
 boolean isCachingAttributes()
           
 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)
          Alternative setBold method which allows also to reset the "own" isBold property.
 void setCachingAttributes(boolean isCachingAttributes)
           
 void setFontName(java.lang.String fontName)
           
 void setItalic(boolean isItalic)
           
 void setItalic(java.lang.Boolean isItalic)
          Alternative setItalic method which allows also to reset the "own" isItalic property.
 void setPdfEmbedded(boolean isPdfEmbedded)
           
 void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
          Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.
 void setPdfEncoding(java.lang.String pdfEncoding)
           
 void setPdfFontName(java.lang.String pdfFontName)
           
 void setSize(int size)
           
 void setSize(java.lang.Integer size)
          Alternative setSize method which allows also to reset the "own" size property.
 void setStrikeThrough(boolean isStrikeThrough)
           
 void setStrikeThrough(java.lang.Boolean isStrikeThrough)
          Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.
 void setUnderline(boolean isUnderline)
           
 void setUnderline(java.lang.Boolean isUnderline)
          Alternative setUnderline method which allows also to reset the "own" isUnderline property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultFontProvider

protected JRDefaultFontProvider defaultFontProvider

reportFont

protected JRReportFont reportFont

fontName

protected java.lang.String fontName

isBold

protected java.lang.Boolean isBold

isItalic

protected java.lang.Boolean isItalic

isUnderline

protected java.lang.Boolean isUnderline

isStrikeThrough

protected java.lang.Boolean isStrikeThrough

size

protected java.lang.Integer size

pdfFontName

protected java.lang.String pdfFontName

pdfEncoding

protected java.lang.String pdfEncoding

isPdfEmbedded

protected java.lang.Boolean isPdfEmbedded

isCachingAttributes

protected boolean isCachingAttributes

attributes

protected transient java.util.Map attributes
Constructor Detail

JRBaseFont

public JRBaseFont()

JRBaseFont

public JRBaseFont(java.util.Map attributes)

JRBaseFont

protected JRBaseFont(JRDefaultFontProvider defaultFontProvider)

JRBaseFont

public JRBaseFont(JRDefaultFontProvider defaultFontProvider,
                  JRReportFont reportFont,
                  JRFont font)
Method Detail

getDefaultFontProvider

public JRDefaultFontProvider getDefaultFontProvider()

getReportFont

public JRReportFont getReportFont()
Specified by:
getReportFont in interface JRFont

getFontName

public java.lang.String getFontName()
Specified by:
getFontName in interface JRFont

getOwnFontName

public java.lang.String getOwnFontName()
Specified by:
getOwnFontName in interface JRFont

setFontName

public void setFontName(java.lang.String fontName)
Specified by:
setFontName in interface JRFont

isBold

public boolean isBold()
Specified by:
isBold in interface JRFont

isOwnBold

public java.lang.Boolean isOwnBold()
Specified by:
isOwnBold in interface JRFont

setBold

public void setBold(boolean isBold)
Specified by:
setBold in interface JRFont

setBold

public void setBold(java.lang.Boolean isBold)
Alternative setBold method which allows also to reset the "own" isBold property.


isItalic

public boolean isItalic()
Specified by:
isItalic in interface JRFont

isOwnItalic

public java.lang.Boolean isOwnItalic()
Specified by:
isOwnItalic in interface JRFont

setItalic

public void setItalic(boolean isItalic)
Specified by:
setItalic in interface JRFont

setItalic

public void setItalic(java.lang.Boolean isItalic)
Alternative setItalic method which allows also to reset the "own" isItalic property.


isUnderline

public boolean isUnderline()
Specified by:
isUnderline in interface JRFont

isOwnUnderline

public java.lang.Boolean isOwnUnderline()
Specified by:
isOwnUnderline in interface JRFont

setUnderline

public void setUnderline(boolean isUnderline)
Specified by:
setUnderline in interface JRFont

setUnderline

public void setUnderline(java.lang.Boolean isUnderline)
Alternative setUnderline method which allows also to reset the "own" isUnderline property.


isStrikeThrough

public boolean isStrikeThrough()
Specified by:
isStrikeThrough in interface JRFont

isOwnStrikeThrough

public java.lang.Boolean isOwnStrikeThrough()
Specified by:
isOwnStrikeThrough in interface JRFont

setStrikeThrough

public void setStrikeThrough(boolean isStrikeThrough)
Specified by:
setStrikeThrough in interface JRFont

setStrikeThrough

public void setStrikeThrough(java.lang.Boolean isStrikeThrough)
Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.


getSize

public int getSize()
Specified by:
getSize in interface JRFont

getOwnSize

public java.lang.Integer getOwnSize()
Specified by:
getOwnSize in interface JRFont

setSize

public void setSize(int size)
Specified by:
setSize in interface JRFont

setSize

public void setSize(java.lang.Integer size)
Alternative setSize method which allows also to reset the "own" size property.


getPdfFontName

public java.lang.String getPdfFontName()
Specified by:
getPdfFontName in interface JRFont

getOwnPdfFontName

public java.lang.String getOwnPdfFontName()
Specified by:
getOwnPdfFontName in interface JRFont

setPdfFontName

public void setPdfFontName(java.lang.String pdfFontName)
Specified by:
setPdfFontName in interface JRFont

getPdfEncoding

public java.lang.String getPdfEncoding()
Specified by:
getPdfEncoding in interface JRFont

getOwnPdfEncoding

public java.lang.String getOwnPdfEncoding()
Specified by:
getOwnPdfEncoding in interface JRFont

setPdfEncoding

public void setPdfEncoding(java.lang.String pdfEncoding)
Specified by:
setPdfEncoding in interface JRFont

isPdfEmbedded

public boolean isPdfEmbedded()
Specified by:
isPdfEmbedded in interface JRFont

isOwnPdfEmbedded

public java.lang.Boolean isOwnPdfEmbedded()
Specified by:
isOwnPdfEmbedded in interface JRFont

setPdfEmbedded

public void setPdfEmbedded(boolean isPdfEmbedded)
Specified by:
setPdfEmbedded in interface JRFont

setPdfEmbedded

public void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.


isCachingAttributes

public boolean isCachingAttributes()
Specified by:
isCachingAttributes in interface JRFont

setCachingAttributes

public void setCachingAttributes(boolean isCachingAttributes)

getNonPdfAttributes

public java.util.Map getNonPdfAttributes()
Specified by:
getNonPdfAttributes in interface JRFont

getAttributes

public java.util.Map getAttributes()
Specified by:
getAttributes in interface JRFont


© 2001-2005 JasperSoft Corporation www.jaspersoft.com