Class JRDesignDataRange
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseDataRange
-
- net.sf.jasperreports.charts.design.JRDesignDataRange
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,JRDataRange,JRChangeEventsSupport,JRCloneable
public class JRDesignDataRange extends JRBaseDataRange implements JRChangeEventsSupport
Contains a range of values. Used to specify the set of acceptable values for a meter or thermometer, and to divide those charts up into subsections.- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_HIGH_EXPRESSIONstatic java.lang.StringPROPERTY_LOW_EXPRESSION-
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseDataRange
highExpression, lowExpression
-
-
Constructor Summary
Constructors Constructor Description JRDesignDataRange(JRDataRange dataRange)Constructs a new data range that is a copy of an existing one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.voidsetHighExpression(JRExpression highExpression)Sets the high expression of the range.voidsetLowExpression(JRExpression lowExpression)Sets the low expression of the range.-
Methods inherited from class net.sf.jasperreports.charts.base.JRBaseDataRange
collectExpressions, getHighExpression, getLowExpression
-
-
-
-
Field Detail
-
PROPERTY_HIGH_EXPRESSION
public static final java.lang.String PROPERTY_HIGH_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_LOW_EXPRESSION
public static final java.lang.String PROPERTY_LOW_EXPRESSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRDesignDataRange
public JRDesignDataRange(JRDataRange dataRange)
Constructs a new data range that is a copy of an existing one.- Parameters:
dataRange- the range to copy
-
-
Method Detail
-
setLowExpression
public void setLowExpression(JRExpression lowExpression)
Sets the low expression of the range. The low expression is evaluted to get the lower bound of the range.- Parameters:
lowExpression- used to get the lower bound of the range
-
setHighExpression
public void setHighExpression(JRExpression highExpression)
Sets the high expression of the range. The high expression is used to get the upper bound of the range.- Parameters:
highExpression- used to get the upper bound of the range
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseDataRange
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
-