Class MultiAxisDataService
- java.lang.Object
-
- net.sf.jasperreports.engine.analytics.dataset.MultiAxisDataService
-
public class MultiAxisDataService extends Object
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMultiAxisDataService.DataSourceprotected classMultiAxisDataService.LevelNodeprotected classMultiAxisDataService.MultiAxisBucketingServiceprotected static classMultiAxisDataService.PropertiesWrapperBucketDefintionprotected static classMultiAxisDataService.ServiceContext
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_MESSAGE_KEY_INCREMENT_BIDIMENSIONAL_DATASET_ERRORprotected static org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Constructor Description MultiAxisDataService(JasperReportsContext jasperReportsContext, JRFillExpressionEvaluator expressionEvaluator, MultiAxisData data, byte evaluation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecord()voidclearData()MultiAxisDataSourcecreateDataSource()protected AxisLevelcreateLevel(Axis axis, DataAxisLevel dataLevel, byte evaluation, int depth)protected MeasurecreateMeasure(DataMeasure dataMeasure, byte evaluation)protected BucketDefinitioncreateRootBucket()protected AxisLevelcreateRootLevel(Axis axis)protected BucketDefinitioncreateServiceBucket(DataAxisLevel level, byte evaluation)protected MeasureDefinitioncreateServiceMeasure(DataMeasure measure)protected ObjectevaluateBucketValue(JRCalculator calculator, DataAxisLevel level)voidevaluateRecord(JRCalculator calculator)
-
-
-
Field Detail
-
log
protected static final org.apache.commons.logging.Log log
-
EXCEPTION_MESSAGE_KEY_INCREMENT_BIDIMENSIONAL_DATASET_ERROR
public static final String EXCEPTION_MESSAGE_KEY_INCREMENT_BIDIMENSIONAL_DATASET_ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiAxisDataService
public MultiAxisDataService(JasperReportsContext jasperReportsContext, JRFillExpressionEvaluator expressionEvaluator, MultiAxisData data, byte evaluation) throws JRException
- Throws:
JRException
-
-
Method Detail
-
createRootLevel
protected AxisLevel createRootLevel(Axis axis) throws JRException
- Throws:
JRException
-
createRootBucket
protected BucketDefinition createRootBucket() throws JRException
- Throws:
JRException
-
createLevel
protected AxisLevel createLevel(Axis axis, DataAxisLevel dataLevel, byte evaluation, int depth) throws JRException
- Throws:
JRException
-
createServiceBucket
protected BucketDefinition createServiceBucket(DataAxisLevel level, byte evaluation) throws JRException
- Throws:
JRException
-
createMeasure
protected Measure createMeasure(DataMeasure dataMeasure, byte evaluation) throws JRException
- Throws:
JRException
-
createServiceMeasure
protected MeasureDefinition createServiceMeasure(DataMeasure measure)
-
evaluateRecord
public void evaluateRecord(JRCalculator calculator) throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
-
evaluateBucketValue
protected Object evaluateBucketValue(JRCalculator calculator, DataAxisLevel level) throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
-
addRecord
public void addRecord()
-
clearData
public void clearData()
-
createDataSource
public MultiAxisDataSource createDataSource() throws JRException
- Throws:
JRException
-
-