Class JRBaseDataRange

    • 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 copy
        factory - 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 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