Class JRFillTextElement

    • Field Detail

      • EXCEPTION_MESSAGE_KEY_INVALID_START_INDEX

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_INVALID_START_INDEX
        See Also:
        Constant Field Values
      • PROPERTY_CONSUME_SPACE_ON_OVERFLOW

        public static final java.lang.String PROPERTY_CONSUME_SPACE_ON_OVERFLOW
        See Also:
        Constant Field Values
      • PROPERTY_SCALE_FONT_STEP_LIMIT

        public static final java.lang.String PROPERTY_SCALE_FONT_STEP_LIMIT
        See Also:
        Constant Field Values
      • PROPERTY_CUT_TEXT_MAX_HEIGHT

        public static final java.lang.String PROPERTY_CUT_TEXT_MAX_HEIGHT
        See Also:
        Constant Field Values
      • PROPERTY_LEGACY_TEXT_MEASURING

        public static final java.lang.String PROPERTY_LEGACY_TEXT_MEASURING
        See Also:
        Constant Field Values
      • initLineBox

        protected final JRLineBox initLineBox
      • initParagraph

        protected final JRParagraph initParagraph
    • Method Detail

      • ensureTextMeasurer

        protected void ensureTextMeasurer()
      • getModeValue

        public ModeEnum getModeValue()
        Description copied from interface: JRCommonElement
        Returns the element transparency mode. The default value depends on the type of the report element. Graphic elements like rectangles and lines are opaque by default, but the images are transparent. Both static texts and text fields are transparent by default, and so are the subreport elements.
        Specified by:
        getModeValue in interface JRCommonElement
        Overrides:
        getModeValue in class JRFillElement
      • getMarkup

        public java.lang.String getMarkup()
        Description copied from interface: JRCommonText
        Returns the text markup.
        Specified by:
        getMarkup in interface JRCommonText
      • setMarkup

        public void setMarkup​(java.lang.String markup)
        Specified by:
        setMarkup in interface JRCommonText
      • getPrintLineBox

        protected JRLineBox getPrintLineBox()
      • getPrintParagraph

        protected JRParagraph getPrintParagraph()
      • getStyledTextAttributes

        protected java.util.Map<java.text.AttributedCharacterIterator.Attribute,​java.lang.Object> getStyledTextAttributes()
      • getLineSpacingFactor

        protected float getLineSpacingFactor()
      • setLineSpacingFactor

        protected void setLineSpacingFactor​(float lineSpacingFactor)
      • getLeadingOffset

        protected float getLeadingOffset()
      • setLeadingOffset

        protected void setLeadingOffset​(float leadingOffset)
      • getTextWidth

        public float getTextWidth()
      • setTextWidth

        protected void setTextWidth​(float textWidth)
      • getTextHeight

        protected float getTextHeight()
      • setTextHeight

        protected void setTextHeight​(float textHeight)
      • getTextStart

        protected int getTextStart()
      • setTextStart

        protected void setTextStart​(int textStart)
      • getTextEnd

        protected int getTextEnd()
      • setTextEnd

        protected void setTextEnd​(int textEnd)
      • isCutParagraph

        protected boolean isCutParagraph()
      • setCutParagraph

        protected void setCutParagraph​(boolean isCutParagraph)
      • getLineBreakOffsets

        protected short[] getLineBreakOffsets()
      • setLineBreakOffsets

        protected void setLineBreakOffsets​(short[] lineBreakOffsets)
      • resetTextChunk

        protected void resetTextChunk()
      • getRawText

        protected java.lang.String getRawText()
      • setRawText

        protected void setRawText​(java.lang.String rawText)
      • getProcessedStyledText

        protected JRStyledText getProcessedStyledText()
      • getTextString

        public java.lang.String getTextString()
      • chopTextElement

        protected void chopTextElement​(int availableStretchHeight)
      • isConsumeSpaceOnOverflow

        protected boolean isConsumeSpaceOnOverflow()
      • canOverflow

        protected abstract boolean canOverflow()
      • scaleFontToFit

        protected abstract boolean scaleFontToFit()
      • 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
      • getOwnFontsize

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

        public void setFontSize​(java.lang.Float size)
        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
      • processMarkupText

        protected java.lang.String processMarkupText​(java.lang.String text)
      • setPrintText

        protected void setPrintText​(JRPrintText printText)
      • keepFullText

        protected boolean keepFullText()
      • scaleFontStepLimit

        protected float scaleFontStepLimit()
      • cutTextMaxHeight

        protected int cutTextMaxHeight()
      • setPrintText

        protected void setPrintText​(JRPrintText printText,
                                    java.lang.String text)
      • getTextTruncateSuffix

        protected java.lang.String getTextTruncateSuffix()
      • setTextTruncateSuffix

        protected void setTextTruncateSuffix​(java.lang.String textTruncateSuffix)