Class NaiveTextMeasurer

java.lang.Object
net.sf.jasperreports.engine.fill.NaiveTextMeasurer
All Implemented Interfaces:
JRTextMeasurer

public class NaiveTextMeasurer extends Object implements JRTextMeasurer
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Constructor Details

    • NaiveTextMeasurer

      public NaiveTextMeasurer(JRCommonText text)
  • Method Details

    • 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