Class JRBaseThermometerPlot

    • Field Detail

      • dataRange

        protected JRDataRange dataRange
        The range of values that can be displayed by this thermometer. Specifies the upper and lower bounds of the meter itself.
      • valueDisplay

        protected JRValueDisplay valueDisplay
        Formatting information for the textual display of the value, including font, color and a mask.
      • valueLocationObject

        protected ValueLocationEnum valueLocationObject
        Specifies where the textual display of the value should be shown.
      • mercuryColor

        protected java.awt.Color mercuryColor
        The default color to use for the mercury in the thermometer.
      • lowRange

        protected JRDataRange lowRange
        The boundaries of the low range.
      • mediumRange

        protected JRDataRange mediumRange
        The boundaries of the medium range.
      • highRange

        protected JRDataRange highRange
        The boundaries of the high range.
    • Constructor Detail

      • JRBaseThermometerPlot

        public JRBaseThermometerPlot​(JRChartPlot plot,
                                     JRChart chart)
        Constructs a new thermometer plot that is a copy of an existing one.
        Parameters:
        plot - the plot to copy
        chart - the parent chart
      • JRBaseThermometerPlot

        public JRBaseThermometerPlot​(JRThermometerPlot thermoPlot,
                                     JRBaseObjectFactory factory)
        Constructs a new plot that is a copy of an existing one, and registers all expression used by the plot with the specified factory.
        Parameters:
        thermoPlot - the plot to copy
        factory - the factory to register any expressions with
    • Method Detail

      • getDataRange

        public JRDataRange getDataRange()
        Description copied from interface: JRThermometerPlot
        Returns the range of values displayed by this thermometer. This range corresponds with the scale on the thermometer.
        Specified by:
        getDataRange in interface JRThermometerPlot
        Returns:
        the range of values displayed by this thermometer
      • getMercuryColor

        public java.awt.Color getMercuryColor()
        Description copied from interface: JRThermometerPlot
        Returns the color of the "mercury" in the thermometer when the value is not in a defined range.
        Specified by:
        getMercuryColor in interface JRThermometerPlot
        Returns:
        the default color of the mercury in the thermometer
      • collectExpressions

        public void collectExpressions​(JRExpressionCollector collector)
        Adds all the expression used by this plot with the specified collector. All collected expression that are also registered with a factory will be included with the report is compiled.
        Specified by:
        collectExpressions in interface JRChartPlot
        Parameters:
        collector - the expression collector to use