Class JRDesignThermometerPlot
java.lang.Object
net.sf.jasperreports.charts.base.JRBaseChartPlot
net.sf.jasperreports.charts.base.JRBaseThermometerPlot
net.sf.jasperreports.charts.design.JRDesignThermometerPlot
- All Implemented Interfaces:
Serializable,Cloneable,JRChartPlot,JRThermometerPlot,JRChangeEventsSupport,JRCloneable
The layout options of a thermometer chart.
- 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 TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class net.sf.jasperreports.charts.base.JRBaseThermometerPlot
dataRange, highRange, lowRange, mediumRange, mercuryColor, valueDisplay, valueLocationObjectFields 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
ConstructorsConstructorDescriptionJRDesignThermometerPlot(JRChartPlot plot, JRChart chart) Constructs a new plot that is a copy of an existing one. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDataRange(JRDataRange dataRange) Sets the range of values that can be displayed by this thermometer.voidsetHighRange(JRDataRange highRange) Specifies the high range of the thermometer.voidsetLowRange(JRDataRange lowRange) Specifies the low range of the thermometer.voidsetMediumRange(JRDataRange mediumRange) Specifies the medium range of the thermometer.voidsetMercuryColor(Color mercuryColor) Sets the default color of the mercury in the thermometer.voidsetValueDisplay(JRValueDisplay valueDisplay) Sets the formatting option for the textual display of the value.voidsetValueLocation(ValueLocationEnum valueLocationObject) Sets where to show the textual display of the value.Methods inherited from class net.sf.jasperreports.charts.base.JRBaseThermometerPlot
clone, collectExpressions, getDataRange, getHighRange, getLowRange, getMediumRange, getMercuryColor, getValueDisplay, getValueLocationMethods 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
-
PROPERTY_DATA_RANGE
- See Also:
-
PROPERTY_HIGH_RANGE
- See Also:
-
PROPERTY_LOW_RANGE
- See Also:
-
PROPERTY_MEDIUM_RANGE
- See Also:
-
PROPERTY_MERCURY_COLOR
- See Also:
-
PROPERTY_VALUE_DISPLAY
- See Also:
-
PROPERTY_VALUE_LOCATION
- See Also:
-
-
Constructor Details
-
JRDesignThermometerPlot
Constructs a new plot that is a copy of an existing one.- Parameters:
plot- the plot to copy
-
-
Method Details
-
setDataRange
Sets the range of values that can be displayed by this thermometer. Specifies the upper and lower bounds of the display area of the meter.- Parameters:
dataRange- the range of values to display
-
setValueDisplay
Sets the formatting option for the textual display of the value.- Parameters:
valueDisplay- the value display formatting options
-
setValueLocation
Sets where to show the textual display of the value.- Parameters:
valueLocationObject- where to show the textual display of the value
-
setMercuryColor
Sets the default color of the mercury in the thermometer. This color will be used when the value is not in a specified range.- Parameters:
mercuryColor- the default color of the mercury
-
setLowRange
Specifies the low range of the thermometer.- Parameters:
lowRange- the low range of the thermometer
-
setMediumRange
Specifies the medium range of the thermometer.- Parameters:
mediumRange- the medium range of the thermometer
-
setHighRange
Specifies the high range of the thermometer.- Parameters:
highRange- the high range of the thermometer
-