public class AutoSizeConstraints extends Object implements SizeConstraints
SizeConstraints.Extent
Constructor and Description |
---|
AutoSizeConstraints() |
Modifier and Type | Method and Description |
---|---|
SizeConstraints.Extent |
width(String[] raw,
int tableWidth,
int nbColumns)
Return the minimum and maximum width of the cell, given its raw content.
|
public SizeConstraints.Extent width(String[] raw, int tableWidth, int nbColumns)
SizeConstraints
width
in interface SizeConstraints
raw
- the raw String representation of the cell contents (may be reformatted later, eg wrapped)tableWidth
- the whole available width for the tablenbColumns
- the number of columns in the table