net.sf.jasperreports.crosstabs.fill

## Interface JRPercentageCalculator

- All Known Implementing Classes:
    JRPercentageCalculatorFactory.BigDecimalPercentageCalculator, JRPercentageCalculatorFactory.BigIntegerPercentageCalculator, JRPercentageCalculatorFactory.BytePercentageCalculator, JRPercentageCalculatorFactory.DoublePercentageCalculator, JRPercentageCalculatorFactory.FloatPercentageCalculator, JRPercentageCalculatorFactory.IntegerPercentageCalculator, JRPercentageCalculatorFactory.LongPercentageCalculator, JRPercentageCalculatorFactory.ShortPercentageCalculator

      public interface JRPercentageCalculator

  Percentage calculator interface.

  Implementing this interface is required for percentage calculations on types missing built-in support.

  Version:
    $Id: JRPercentageCalculator.java 5877 2013-01-07 19:51:14Z teodord $
  Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
  See Also:
    `JRPercentageCalculatorFactory`

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `calculatePercentage(JRCalculable value, JRCalculable total)` Calculates the percentage of a value out of a total.

- - ### Method Detail

    - #### calculatePercentage

          java.lang.Object calculatePercentage(JRCalculable value,
                                             JRCalculable total)

      Calculates the percentage of a value out of a total.
      Parameters:
        `value` - the value
        `total` - the total
      Returns:
        the percentage

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com