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
public class JRDesignThermometerPlot extends JRBaseThermometerPlot
The layout options of a thermometer chart.- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
JRBaseChartPlot.JRBaseSeriesColor
-
Nested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_DATA_RANGE
static String
PROPERTY_HIGH_RANGE
static String
PROPERTY_LOW_RANGE
static String
PROPERTY_MEDIUM_RANGE
static String
PROPERTY_MERCURY_COLOR
static String
PROPERTY_VALUE_DISPLAY
static String
PROPERTY_VALUE_LOCATION
-
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseThermometerPlot
dataRange, highRange, lowRange, mediumRange, mercuryColor, valueDisplay, valueLocationObject
-
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
Constructors Constructor Description JRDesignThermometerPlot(JRChartPlot plot, JRChart chart)
Constructs a new plot that is a copy of an existing one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDataRange(JRDataRange dataRange)
Sets the range of values that can be displayed by this thermometer.void
setHighRange(JRDataRange highRange)
Specifies the high range of the thermometer.void
setLowRange(JRDataRange lowRange)
Specifies the low range of the thermometer.void
setMediumRange(JRDataRange mediumRange)
Specifies the medium range of the thermometer.void
setMercuryColor(Color mercuryColor)
Sets the default color of the mercury in the thermometer.void
setValueDisplay(JRValueDisplay valueDisplay)
Sets the formatting option for the textual display of the value.void
setValueLocation(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, getValueLocation
-
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, setSeriesColors
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.charts.JRChartPlot
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlpha, getChart, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
-
-
-
Field Detail
-
PROPERTY_DATA_RANGE
public static final String PROPERTY_DATA_RANGE
- See Also:
- Constant Field Values
-
PROPERTY_HIGH_RANGE
public static final String PROPERTY_HIGH_RANGE
- See Also:
- Constant Field Values
-
PROPERTY_LOW_RANGE
public static final String PROPERTY_LOW_RANGE
- See Also:
- Constant Field Values
-
PROPERTY_MEDIUM_RANGE
public static final String PROPERTY_MEDIUM_RANGE
- See Also:
- Constant Field Values
-
PROPERTY_MERCURY_COLOR
public static final String PROPERTY_MERCURY_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_DISPLAY
public static final String PROPERTY_VALUE_DISPLAY
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_LOCATION
public static final String PROPERTY_VALUE_LOCATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRDesignThermometerPlot
public JRDesignThermometerPlot(JRChartPlot plot, JRChart chart)
Constructs a new plot that is a copy of an existing one.- Parameters:
plot
- the plot to copy
-
-
Method Detail
-
setDataRange
public void setDataRange(JRDataRange dataRange)
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
public void setValueDisplay(JRValueDisplay valueDisplay)
Sets the formatting option for the textual display of the value.- Parameters:
valueDisplay
- the value display formatting options
-
setValueLocation
public void setValueLocation(ValueLocationEnum valueLocationObject)
Sets where to show the textual display of the value.- Parameters:
valueLocationObject
- where to show the textual display of the value
-
setMercuryColor
public void setMercuryColor(Color mercuryColor)
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
public void setLowRange(JRDataRange lowRange)
Specifies the low range of the thermometer.- Parameters:
lowRange
- the low range of the thermometer
-
setMediumRange
public void setMediumRange(JRDataRange mediumRange)
Specifies the medium range of the thermometer.- Parameters:
mediumRange
- the medium range of the thermometer
-
setHighRange
public void setHighRange(JRDataRange highRange)
Specifies the high range of the thermometer.- Parameters:
highRange
- the high range of the thermometer
-
-