Style Intelligence v12.0

inetsoft.report.filter
Interface PercentageFormula

All Superinterfaces:
Cloneable, Formula, Serializable
All Known Implementing Classes:
AverageFormula, CalcFieldFormula, CountFormula, DistinctCountFormula, MaxFormula, MedianFormula, MinFormula, PopulationStandardDeviationFormula, PopulationVarianceFormula, ProductFormula, StandardDeviationFormula, SumFormula, VarianceFormula

public interface PercentageFormula
extends Formula

Formula Object implemented this interface to support percentage.


Field Summary
 
Fields inherited from interface inetsoft.report.filter.Formula
__NULL__
 
Method Summary
 Object getOriginalResult()
          Get the original formula result without percentage.
 int getPercentageType()
          Get percentage type.
 void setPercentageType(int percentage)
          Set percentage type.
 void setTotal(Object total)
          Add percentage object.
 
Methods inherited from interface inetsoft.report.filter.Formula
addValue, addValue, addValue, addValue, addValue, addValue, addValue, clone, getDisplayName, getDoubleResult, getName, getResult, isDefaultResult, reset, setDefaultResult
 

Method Detail

getPercentageType

int getPercentageType()
Get percentage type.


setPercentageType

void setPercentageType(int percentage)
Set percentage type. three types: StyleConstants.PERCENTAGE_NONE, StyleConstants.PERCENTAGE_OF_GROUP, StyleConstants.PERCENTAGE_OF_GRANDTOTAL.


setTotal

void setTotal(Object total)
Add percentage object. The total is used to calculate the percentage of a summarization. If percentage type is PERCENTAGE_NONE, it is ineffective to invoke the method.


getOriginalResult

Object getOriginalResult()
Get the original formula result without percentage.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.