A report function that calculates the average of one field (column) from the TableModel. This function produces a
running total, no global total. The function can be used in two ways:
to calculate an average value for the
entire report;
to calculate an average value within a particular group;
This function expects its
input values to be either java.lang.Number instances or Strings that can be parsed to java.lang.Number instances
using a java.text.DecimalFormat.
The function undestands two parameters, the field parameter is required and denotes the name of an
ItemBand-field which gets summed up.
The parameter group denotes the name of a group. When this group is started, the counter gets reseted to
null.
author: Thomas Morgner
Return a completly separated copy of this function. The copy does no longer share any changeable objects with the
original function.
a copy of this function.
Receives notification that a new group is about to start. If this is the group defined for the function, then the
running total is reset to zero.
Parameters: event - Information about the event.
If a group is defined, the functions value is reset to zero at the start of every instance
of this group.
Parameters: name - The group name (null permitted).
setRoundingMode
public void setRoundingMode(int roundingMode)(Code)