JIDE 3.5.15

com.jidesoft.pivot
Interface Summary


public interface Summary

A summary interface to calculate a custom summary. This class is used by PivotField.setCustomSummary(Summary). When PivotField.getSummaryType() equals SUMMARY_CUSTOM, the Summary in setCustomSummary will be used to compute the summary.


Method Summary
 String getName()
          The name of the summary.
 Object getResult(Object[] values)
          Gets the summary result.
 

Method Detail

getName

String getName()
The name of the summary.

Returns:
the name of the summary.

getResult

Object getResult(Object[] values)
Gets the summary result. It will use the array of input data and calculated the summary. For example, if you want to do a SUM summary, simply add all values up and return the total.

Parameters:
values - the input value. It's an array of data.
Returns:
the summary.

JIDE 3.5.15