Class JRBaseFont

    • Field Detail

      • PROPERTY_FONT_NAME

        public static final java.lang.String PROPERTY_FONT_NAME
        See Also:
        Constant Field Values
      • PROPERTY_FONT_SIZE

        public static final java.lang.String PROPERTY_FONT_SIZE
        See Also:
        Constant Field Values
      • PROPERTY_PDF_EMBEDDED

        public static final java.lang.String PROPERTY_PDF_EMBEDDED
        See Also:
        Constant Field Values
      • PROPERTY_PDF_ENCODING

        public static final java.lang.String PROPERTY_PDF_ENCODING
        See Also:
        Constant Field Values
      • PROPERTY_PDF_FONT_NAME

        public static final java.lang.String PROPERTY_PDF_FONT_NAME
        See Also:
        Constant Field Values
      • PROPERTY_REPORT_FONT

        public static final java.lang.String PROPERTY_REPORT_FONT
        See Also:
        Constant Field Values
      • PROPERTY_STRIKE_THROUGH

        public static final java.lang.String PROPERTY_STRIKE_THROUGH
        See Also:
        Constant Field Values
      • PROPERTY_UNDERLINE

        public static final java.lang.String PROPERTY_UNDERLINE
        See Also:
        Constant Field Values
      • styleNameReference

        protected java.lang.String styleNameReference
      • 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
      • fontsize

        protected java.lang.Float fontsize
      • pdfFontName

        protected java.lang.String pdfFontName
      • pdfEncoding

        protected java.lang.String pdfEncoding
      • isPdfEmbedded

        protected java.lang.Boolean isPdfEmbedded
    • Method Detail

      • getStyleNameReference

        public java.lang.String 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 in templates and are resolved at fill time. This attribute is only effective if no direct style (as returned by getStyle() is specified for this object.

        Specified by:
        getStyleNameReference in interface JRStyleContainer
        Returns:
        the name of an external style
      • 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​(java.lang.Boolean isBold)
        Alternative setBold method which allows also to reset the "own" isBold property.
        Specified by:
        setBold in interface JRFont
      • 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​(java.lang.Boolean isItalic)
        Alternative setItalic method which allows also to reset the "own" isItalic property.
        Specified by:
        setItalic in interface JRFont
      • 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​(java.lang.Boolean isUnderline)
        Alternative setUnderline method which allows also to reset the "own" isUnderline property.
        Specified by:
        setUnderline in interface JRFont
      • isOwnStrikeThrough

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

        public void setStrikeThrough​(java.lang.Boolean isStrikeThrough)
        Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property.
        Specified by:
        setStrikeThrough in interface JRFont
      • getFontsize

        public float getFontsize()
        Specified by:
        getFontsize in interface JRFont
      • getOwnFontsize

        public java.lang.Float getOwnFontsize()
        Specified by:
        getOwnFontsize in interface JRFont
      • setFontSize

        public void setFontSize​(java.lang.Float fontSize)
        Method which allows also to reset the "own" size property.
        Specified by:
        setFontSize in interface JRFont
      • 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​(java.lang.Boolean isPdfEmbedded)
        Alternative setPdfEmbedded method which allows also to reset the "own" isPdfEmbedded property.
        Specified by:
        setPdfEmbedded in interface JRFont
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface JRCloneable
        Overrides:
        clone in class java.lang.Object