public class DefaultGroupTableSummaryCalculator extends DefaultSummaryCalculator implements GroupTableSummaryCalculator
addValue(javax.swing.table.TableModel, Row, int, Object)
and call DefaultSummaryCalculator.addValue(Object)
as the default
implementation. However you can subclass it and override addValue(javax.swing.table.TableModel, Row, int,
Object)
to provide another implementation if your implementation of the summary value needs to know the values from
other cells.ALLOWED_SUMMARIES_ALL, ALLOWED_SUMMARIES_COUNT, ALLOWED_SUMMARIES_MAX_MIN_COUNT, SUMMARY_CONSTANT, SUMMARY_COUNT, SUMMARY_CUSTOM, SUMMARY_MAX, SUMMARY_MEAN, SUMMARY_MIN, SUMMARY_NONE, SUMMARY_RESERVED_MAX, SUMMARY_STDDEV, SUMMARY_SUM, SUMMARY_VAR
Constructor and Description |
---|
DefaultGroupTableSummaryCalculator() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(TableModel model,
Row row,
int columnIndex,
Object value)
Adds a value for calculation.
|
addValue, clear, clone, getAllowedSummaries, getAllowedSummaries, getCount, getMathContext, getNumberOfSummaries, getSummaryName, getSummaryResult, isBiasCorrected, setBiasCorrected, setMathContext
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValue, clear, getAllowedSummaries, getAllowedSummaries, getCount, getNumberOfSummaries, getSummaryName, getSummaryResult
public void addValue(TableModel model, Row row, int columnIndex, Object value)
GroupTableSummaryCalculator
SummaryCalculator.addValue(Object)
which only takes the value as parameter,
this method provides TableModel, Row and the column index of the cell as in the DefaultGroupTableModel.addValue
in interface GroupTableSummaryCalculator
model
- the table model. It should be the DefaultGroupTableModel in the case of GroupTable.value
- the value