Class SimpleMeasuredText

  • All Implemented Interfaces:
    JRMeasuredText

    public class SimpleMeasuredText
    extends Object
    implements JRMeasuredText
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Detail

      • SimpleMeasuredText

        public SimpleMeasuredText()
    • Method Detail

      • setLeadingOffset

        public void setLeadingOffset​(float leadingOffset)
      • getLeadingOffset

        public float getLeadingOffset()
        Description copied from interface: JRMeasuredText
        Returns the text leading offset.
        Specified by:
        getLeadingOffset in interface JRMeasuredText
        Returns:
        the text leading offset
      • setLineSpacingFactor

        public void setLineSpacingFactor​(float lineSpacingFactor)
      • getLineSpacingFactor

        public float getLineSpacingFactor()
        Description copied from interface: JRMeasuredText
        Return the line spacing factor for the text.
        Specified by:
        getLineSpacingFactor in interface JRMeasuredText
        Returns:
        the line spacing factor
      • setTextWidth

        public void setTextWidth​(float textWidth)
      • getTextWidth

        public float getTextWidth()
        Description copied from interface: JRMeasuredText
        Returns the text's measure width.
        Specified by:
        getTextWidth in interface JRMeasuredText
        Returns:
        the text's measure width
      • getAverageCharWidth

        public float getAverageCharWidth()
        Description copied from interface: JRMeasuredText
        Returns the text's average character width.
        Specified by:
        getAverageCharWidth in interface JRMeasuredText
        Returns:
        the text's average character width
      • setAverageCharWidth

        public void setAverageCharWidth​(float averageCharWidth)
      • setTextHeight

        public void setTextHeight​(float textHeight)
      • getTextHeight

        public float getTextHeight()
        Description copied from interface: JRMeasuredText
        Returns the text's measure height.
        Specified by:
        getTextHeight in interface JRMeasuredText
        Returns:
        the text's measure height
      • setTextOffset

        public void setTextOffset​(int textOffset)
      • getTextOffset

        public int getTextOffset()
        Description copied from interface: JRMeasuredText
        Returns the offset up to which text fitted.
        Specified by:
        getTextOffset in interface JRMeasuredText
        Returns:
        the offset up to which text fitted
      • setLeftToRight

        public void setLeftToRight​(boolean leftToRight)
      • isLeftToRight

        public boolean isLeftToRight()
        Description copied from interface: JRMeasuredText
        Returns whether the text was determined to be left to right or not.
        Specified by:
        isLeftToRight in interface JRMeasuredText
        Returns:
        whether the text was determined to be left to right
      • setParagraphCut

        public void setParagraphCut​(boolean paragraphCut)
      • isParagraphCut

        public boolean isParagraphCut()
        Description copied from interface: JRMeasuredText
        Returns whether the text was cut during a paragraph or the last paragraph was complete.
        Specified by:
        isParagraphCut in interface JRMeasuredText
        Returns:
        whether the last paragraph was cut
      • setTextSuffix

        public void setTextSuffix​(String textSuffix)
      • setLineBreakOffsets

        public void setLineBreakOffsets​(short[] lineBreakOffsets)