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
public class JRBaseDataRange extends Object implements JRDataRange, Serializable
An immutable instantiation of aJRDataRange
, suitable for holding a range.- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRExpression
highExpression
The expression used to calculate the upper bound of the range.protected JRExpression
lowExpression
The expression used to calculate the lower bound of the range.
-
Constructor Summary
Constructors Constructor Description JRBaseDataRange(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
void
collectExpressions(JRExpressionCollector collector)
Registers all of the expressions with the collector.JRExpression
getHighExpression()
Returns the expression that generates the upper bound of the range.JRExpression
getLowExpression()
Returns the expression that generates the lower bound of the range.
-
-
-
Field Detail
-
lowExpression
protected JRExpression lowExpression
The expression used to calculate the lower bound of the range.
-
highExpression
protected JRExpression highExpression
The expression used to calculate the upper bound of the range.
-
-
Constructor Detail
-
JRBaseDataRange
public JRBaseDataRange(JRDataRange dataRange)
Constructs a copy of an existing range.- Parameters:
dataRange
- the range to copy
-
JRBaseDataRange
public JRBaseDataRange(JRDataRange dataRange, ChartsBaseObjectFactory factory)
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 Detail
-
getLowExpression
public JRExpression getLowExpression()
Description copied from interface:JRDataRange
Returns the expression that generates the lower bound of the range.- Specified by:
getLowExpression
in interfaceJRDataRange
- Returns:
- the expression that generates the lower bound of the range
-
getHighExpression
public JRExpression getHighExpression()
Description copied from interface:JRDataRange
Returns the expression that generates the upper bound of the range.- Specified by:
getHighExpression
in interfaceJRDataRange
- Returns:
- the expression that generates the upper bound of the range
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
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
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-