Package net.sf.jasperreports.charts.base
Class JRBaseDataRange
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseDataRange
- All Implemented Interfaces:
Serializable,Cloneable,JRDataRange,JRCloneable
- Direct Known Subclasses:
JRDesignDataRange
An immutable instantiation of a
JRDataRange, suitable for holding
a range.- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionThe expression used to calculate the upper bound of the range.protected JRExpressionThe expression used to calculate the lower bound of the range. -
Constructor Summary
ConstructorsConstructorDescriptionJRBaseDataRange(JRDataRange dataRange) Constructs a copy of an existing range.JRBaseDataRange(JRDataRange dataRange, ChartsBaseObjectFactory factory) Creates a copy of an existing range and registers all of the expressions with a factory object. -
Method Summary
Modifier and TypeMethodDescriptionclone()voidcollectExpressions(JRExpressionCollector collector) Registers all of the expressions with the collector.Returns the expression that generates the upper bound of the range.Returns the expression that generates the lower bound of the range.
-
Field Details
-
lowExpression
The expression used to calculate the lower bound of the range. -
highExpression
The expression used to calculate the upper bound of the range.
-
-
Constructor Details
-
JRBaseDataRange
Constructs a copy of an existing range.- Parameters:
dataRange- the range to copy
-
JRBaseDataRange
Creates a copy of an existing range and registers all of the expressions with a factory object. Once the expressions have been registered they will be included when the report is compiled.- Parameters:
dataRange- the range to copyfactory- the factory to register the expressions with
-
-
Method Details
-
getLowExpression
Description copied from interface:JRDataRangeReturns the expression that generates the lower bound of the range.- Specified by:
getLowExpressionin interfaceJRDataRange- Returns:
- the expression that generates the lower bound of the range
-
getHighExpression
Description copied from interface:JRDataRangeReturns the expression that generates the upper bound of the range.- Specified by:
getHighExpressionin interfaceJRDataRange- Returns:
- the expression that generates the upper bound of the range
-
collectExpressions
Registers all of the expressions with the collector. If the expressions have been registered with one of the report's factory they will be included when the report is compiled.- Parameters:
collector- the expression collector to use
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-