Interface TextWrapper

All Known Implementing Classes:
DebugTextWrapper, DelimiterTextWrapper, KeyValueTextWrapper

public interface TextWrapper
A strategy for applying text wrapping/cropping given a cell width.
  • Method Summary

    Modifier and Type
    Method
    Description
    wrap(String[] original, int columnWidth)
     
  • Method Details

    • wrap

      String[] wrap(String[] original, int columnWidth)
      Parameters:
      original - the text in its original form
      columnWidth - the width to conform to
      Returns:
      a list of lines where each line length MUST be equal to columnWidth (padding with spaces if appropriate). There is no constraint on the number of lines returned however (typically, will be greater than the input number if wrapping occurred).