public class KeyValueSizeConstraints extends java.lang.Object implements SizeConstraints
SizeConstraints.Extent
Constructor and Description |
---|
KeyValueSizeConstraints(java.lang.String delimiter) |
Modifier and Type | Method and Description |
---|---|
SizeConstraints.Extent |
width(java.lang.String[] raw,
int tableWidth,
int nbColumns)
Return the minimum and maximum width of the cell, given its raw content.
|
public KeyValueSizeConstraints(java.lang.String delimiter)
public SizeConstraints.Extent width(java.lang.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