public class KeyValueHorizontalAligner extends java.lang.Object implements Aligner
Typically used to render numbers which may or may not have a decimal point, or series of key-value pairs
Constructor and Description |
---|
KeyValueHorizontalAligner(java.lang.String delimiter) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
align(java.lang.String[] text,
int cellWidth,
int cellHeight)
Perform text alignment, returning a String array that MUST contain
cellHeight lines, each of which MUST be cellWidth chars in length. |
public KeyValueHorizontalAligner(java.lang.String delimiter)
public java.lang.String[] align(java.lang.String[] text, int cellWidth, int cellHeight)
Aligner
cellHeight
lines, each of which MUST be cellWidth
chars in length.
Input array is guaranteed to contain lines that have length equal to . There is no guarantee on the input number of lines though.