Interface JRTextMeasurer

All Known Implementing Classes:
NaiveTextMeasurer, TextMeasurer

public interface JRTextMeasurer
Text measurer interface. A text measurer is responsible for fitting a text in a given space and for computing other text measuring information.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Method Summary

    Modifier and Type
    Method
    Description
    measure(JRStyledText styledText, int remainingTextStart, int availableStretchHeight, boolean indentFirstLine, boolean canOverflow)
    Fit a text chunk in a given space.
  • Method Details

    • measure

      JRMeasuredText measure(JRStyledText styledText, int remainingTextStart, int availableStretchHeight, boolean indentFirstLine, boolean canOverflow)
      Fit a text chunk in a given space.
      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