public class KeyValueHorizontalAligner extends 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(String delimiter) |
Modifier and Type | Method and Description |
---|---|
String[] |
align(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(String delimiter)
public String[] align(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 cellWidth
.
There is no guarantee on the input number of lines though.
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.