public class NamedValuesColumnFormatter extends NamedValuesFormatter
For more details see NamedValuesFormatter.
NamedValuesFormatter
,
NamedValuesRowFormatter
cells, labels, numCols, numRows, STYLE_COLUMNS, STYLE_ROWS
Constructor and Description |
---|
NamedValuesColumnFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
getCell(int row,
int col)
Thinking of the namedValues system as a matrix of strings, return a given cell's string data
|
String |
getFormattedCell(int row,
int col,
String space)
Thinking of the namedValues system as a matrix of strings, return a given cell's string data
formatted in a string according to whether the system as a whole would be printed in column
or row formatting.
|
boolean |
isLabelCell(int row,
int col)
Thinking of the namedValues system as a matrix of strings, return whether
the given cell is a label cell or not.
|
void |
updateDimensions()
Thinking of the namedValues system as a matrix of strings, reset the internal row and column
count based on things like whether labels would be printed (if not, that's one less row).
|
assignNamedValues, centerText, create, display, getColumnWidth, getWhetherDisplayLabels, leftJustifyText, rightJustifyText, setWhetherDisplayLabels
public String getCell(int row, int col)
NamedValuesFormatter
getCell
in class NamedValuesFormatter
row
- Specifies the index of the vector of values that were added to the NamedValues system,
starting from 0 being the first name and value vector added.col
- Specifies the index of a column, where 0 indicates the name, and >0 indicates one of
the values associated with that name.public String getFormattedCell(int row, int col, String space)
NamedValuesFormatter
getFormattedCell
in class NamedValuesFormatter
row
- Specifies the index of the vector of values that were added to the NamedValues system,
starting from 0 being the first name and value vector added.col
- Specifies the index of a column, where 0 indicates the name, and >0 indicates one of
the values associated with that name.public boolean isLabelCell(int row, int col)
NamedValuesFormatter
isLabelCell
in class NamedValuesFormatter
public void updateDimensions()
NamedValuesFormatter
updateDimensions
in class NamedValuesFormatter
Copyright © 2014. All Rights Reserved.