Interface SizeConstraints

All Known Implementing Classes:
AbsoluteWidthSizeConstraints, AutoSizeConstraints, KeyValueSizeConstraints, NoWrapSizeConstraints

public interface SizeConstraints
Strategy for computing the dimensions of a table cell.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Holds both a minimum and maximum width.
  • Method Summary

    Modifier and Type
    Method
    Description
    width(String[] raw, int tableWidth, int nbColumns)
     
  • Method Details

    • width

      SizeConstraints.Extent width(String[] raw, int tableWidth, int nbColumns)
      Parameters:
      raw - the raw String representation of the cell contents (may be reformatted later, eg wrapped)
      tableWidth - the whole available width for the table
      nbColumns - the number of columns in the table
      Returns:
      the minimum and maximum width of the cell, given its raw content.