Package net.sf.jasperreports.charts.base
Class JRBaseThermometerPlot
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseChartPlot
net.sf.jasperreports.charts.base.JRBaseThermometerPlot
- All Implemented Interfaces:
Serializable,Cloneable,JRChartPlot,JRThermometerPlot,JRChangeEventsSupport,JRCloneable
- Direct Known Subclasses:
JRDesignThermometerPlot
An immutable representation of the layout of a thermometer plot.
- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
JRBaseChartPlot.JRBaseSeriesColorNested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRDataRangeThe range of values that can be displayed by this thermometer.protected JRDataRangeThe boundaries of the high range.protected JRDataRangeThe boundaries of the low range.protected JRDataRangeThe boundaries of the medium range.protected ColorThe default color to use for the mercury in the thermometer.protected JRValueDisplayFormatting information for the textual display of the value, including font, color and a mask.protected ValueLocationEnumSpecifies where the textual display of the value should be shown.Fields inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
backcolor, backgroundAlpha, chart, foregroundAlpha, labelRotation, orientation, PROPERTY_BACKCOLOR, PROPERTY_BACKGROUND_ALPHA, PROPERTY_FOREGROUND_ALPHA, PROPERTY_LABEL_ROTATION, PROPERTY_ORIENTATION, PROPERTY_SERIES_COLORS, seriesColors -
Constructor Summary
ConstructorsConstructorDescriptionJRBaseThermometerPlot(JRChartPlot plot, JRChart chart) Constructs a new thermometer plot that is a copy of an existing one.JRBaseThermometerPlot(JRThermometerPlot thermoPlot, ChartsBaseObjectFactory 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. -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectExpressions(ChartsExpressionCollector collector) Adds all the expression used by this plot with the specified collector.Returns the range of values displayed by this thermometer.Returns the high range, ornullif undefined.Returns the low range, ornullif undefined.Returns the medium range, ornullif undefined.Returns the color of the "mercury" in the thermometer when the value is not in a defined range.Returns formatting information for the textual representation of the value.Returns the location where the value of the thermometer will be shown.Methods inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlpha, getChart, getEventSupport, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, getStyleResolver, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColorsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.charts.JRChartPlot
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlpha, getChart, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColorsMethods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Field Details
-
dataRange
The range of values that can be displayed by this thermometer. Specifies the upper and lower bounds of the meter itself. -
valueDisplay
Formatting information for the textual display of the value, including font, color and a mask. -
valueLocationObject
Specifies where the textual display of the value should be shown. -
mercuryColor
The default color to use for the mercury in the thermometer. -
lowRange
The boundaries of the low range. -
mediumRange
The boundaries of the medium range. -
highRange
The boundaries of the high range.
-
-
Constructor Details
-
JRBaseThermometerPlot
Constructs a new thermometer plot that is a copy of an existing one.- Parameters:
plot- the plot to copychart- the parent chart
-
JRBaseThermometerPlot
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 copyfactory- the factory to register any expressions with
-
-
Method Details
-
getDataRange
Description copied from interface:JRThermometerPlotReturns the range of values displayed by this thermometer. This range corresponds with the scale on the thermometer.- Specified by:
getDataRangein interfaceJRThermometerPlot- Returns:
- the range of values displayed by this thermometer
-
getValueDisplay
Description copied from interface:JRThermometerPlotReturns formatting information for the textual representation of the value.- Specified by:
getValueDisplayin interfaceJRThermometerPlot- Returns:
- formatting information for the value
-
getValueLocation
Description copied from interface:JRThermometerPlotReturns the location where the value of the thermometer will be shown. The return value will be one ofNONE,LEFT,RIGHTorBULB.- Specified by:
getValueLocationin interfaceJRThermometerPlot- Returns:
- the location where the value of the thermometer will be shown
-
getMercuryColor
Description copied from interface:JRThermometerPlotReturns the color of the "mercury" in the thermometer when the value is not in a defined range.- Specified by:
getMercuryColorin interfaceJRThermometerPlot- Returns:
- the default color of the mercury in the thermometer
-
getLowRange
Description copied from interface:JRThermometerPlotReturns the low range, ornullif undefined.- Specified by:
getLowRangein interfaceJRThermometerPlot- Returns:
- the low range, or
nullif undefined.
-
getMediumRange
Description copied from interface:JRThermometerPlotReturns the medium range, ornullif undefined.- Specified by:
getMediumRangein interfaceJRThermometerPlot- Returns:
- the medium range, or
nullif undefined.
-
getHighRange
Description copied from interface:JRThermometerPlotReturns the high range, ornullif undefined.- Specified by:
getHighRangein interfaceJRThermometerPlot- Returns:
- the high range, or
nullif undefined.
-
collectExpressions
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:
collectExpressionsin interfaceJRChartPlot- Parameters:
collector- the expression collector to use
-
clone
- Specified by:
clonein interfaceJRChartPlot- Overrides:
clonein classJRBaseChartPlot
-