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 a JRDataRange, suitable for holding a range.
Author:
Barry Klawans (bklawans@users.sourceforge.net)
See Also:
  • Field Details

    • 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 Details

    • 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 copy
      factory - the factory to register the expressions with
  • Method Details

    • getLowExpression

      public JRExpression getLowExpression()
      Description copied from interface: JRDataRange
      Returns the expression that generates the lower bound of the range.
      Specified by:
      getLowExpression in interface JRDataRange
      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 interface JRDataRange
      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 interface JRCloneable
      Overrides:
      clone in class Object