net.sf.jasperreports.engine.fill
Class JRCalculator
java.lang.Object
net.sf.jasperreports.engine.fill.JRCalculator
- public abstract class JRCalculator
- extends java.lang.Object
- Version:
- $Id: JRCalculator.java,v 1.30 2005/07/18 11:31:51 teodord Exp $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Method Summary |
void |
calculateVariables()
|
protected abstract void |
customizedInit(java.util.Map parametersMap,
java.util.Map fieldsMap,
java.util.Map variablesMap)
|
void |
estimateGroupRuptures()
|
void |
estimateVariables()
|
protected abstract java.lang.Object |
evaluate(int id)
|
java.lang.Object |
evaluate(JRExpression expression)
|
protected java.lang.Object |
evaluate(JRExpression expression,
byte evaluationType)
|
protected abstract java.lang.Object |
evaluateEstimated(int id)
|
java.lang.Object |
evaluateEstimated(JRExpression expression)
|
protected abstract java.lang.Object |
evaluateOld(int id)
|
java.lang.Object |
evaluateOld(JRExpression expression)
|
JRFillVariable |
getColumnNumber()
|
JRFillVariable |
getPageNumber()
|
protected java.lang.String |
handleMissingResource(java.lang.String key,
java.lang.Exception e)
Handles the case when a resource is missing. |
protected void |
init(JRBaseFiller parentFiller)
|
void |
initializeVariables(byte resetType)
|
java.lang.String |
msg(java.lang.String pattern,
java.lang.Object arg0)
|
java.lang.String |
msg(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1)
|
java.lang.String |
msg(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
|
java.lang.String |
str(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parsm
protected java.util.Map parsm
fldsm
protected java.util.Map fldsm
varsm
protected java.util.Map varsm
variables
protected JRFillVariable[] variables
groups
protected JRFillGroup[] groups
datasets
protected JRFillChartDataset[] datasets
filler
protected JRBaseFiller filler
JRCalculator
protected JRCalculator()
init
protected void init(JRBaseFiller parentFiller)
throws JRException
- Throws:
JRException
customizedInit
protected abstract void customizedInit(java.util.Map parametersMap,
java.util.Map fieldsMap,
java.util.Map variablesMap)
throws JRException
- Throws:
JRException
getPageNumber
public JRFillVariable getPageNumber()
getColumnNumber
public JRFillVariable getColumnNumber()
calculateVariables
public void calculateVariables()
throws JRException
- Throws:
JRException
estimateVariables
public void estimateVariables()
throws JRException
- Throws:
JRException
estimateGroupRuptures
public void estimateGroupRuptures()
throws JRException
- Throws:
JRException
initializeVariables
public void initializeVariables(byte resetType)
throws JRException
- Throws:
JRException
evaluate
protected java.lang.Object evaluate(JRExpression expression,
byte evaluationType)
throws JRException
- Throws:
JRException
evaluateOld
public java.lang.Object evaluateOld(JRExpression expression)
throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
evaluateEstimated
public java.lang.Object evaluateEstimated(JRExpression expression)
throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
evaluate
public java.lang.Object evaluate(JRExpression expression)
throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
evaluateOld
protected abstract java.lang.Object evaluateOld(int id)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
evaluateEstimated
protected abstract java.lang.Object evaluateEstimated(int id)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
evaluate
protected abstract java.lang.Object evaluate(int id)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
str
public java.lang.String str(java.lang.String key)
msg
public java.lang.String msg(java.lang.String pattern,
java.lang.Object arg0)
msg
public java.lang.String msg(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1)
msg
public java.lang.String msg(java.lang.String pattern,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
handleMissingResource
protected java.lang.String handleMissingResource(java.lang.String key,
java.lang.Exception e)
throws JRRuntimeException
- Handles the case when a resource is missing.
- Parameters:
key
- the resource keye
- the exception
- Returns:
- the value to use for the resource
- Throws:
JRRuntimeException
- when the resource missing handling type is Error
© 2001-2005 JasperSoft Corporation www.jaspersoft.com