Class NaiveTextMeasurer

  • All Implemented Interfaces:
    JRTextMeasurer

    public class NaiveTextMeasurer
    extends java.lang.Object
    implements JRTextMeasurer
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JRMeasuredText measure​(JRStyledText styledText, int remainingTextStart, int availableStretchHeight, boolean indentFirstLine, boolean canOverflow)
      Fit a text chunk in a given space.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NaiveTextMeasurer

        public NaiveTextMeasurer​(JRCommonText text)
    • Method Detail

      • measure

        public JRMeasuredText measure​(JRStyledText styledText,
                                      int remainingTextStart,
                                      int availableStretchHeight,
                                      boolean indentFirstLine,
                                      boolean canOverflow)
        Description copied from interface: JRTextMeasurer
        Fit a text chunk in a given space.
        Specified by:
        measure in interface JRTextMeasurer
        Parameters:
        styledText - the full text
        remainingTextStart - the start index of the remaining text
        availableStretchHeight - the available stretch height
        indentFirstLine - whether should honor first line indent
        canOverflow - whether the text element is able to overflow
        Returns:
        text measuring information