public class JRBaseThermometerPlot extends JRBaseChartPlot implements JRThermometerPlot
JRBaseChartPlot.JRBaseSeriesColor
JRChartPlot.JRSeriesColor
Modifier and Type | Field and Description |
---|---|
protected JRDataRange |
dataRange
The range of values that can be displayed by this thermometer.
|
protected JRDataRange |
highRange
The boundaries of the high range.
|
protected JRDataRange |
lowRange
The boundaries of the low range.
|
protected JRDataRange |
mediumRange
The boundaries of the medium range.
|
protected Color |
mercuryColor
The default color to use for the mercury in the thermometer.
|
protected boolean |
showValueLines
Deprecated.
No longer used.
|
protected JRValueDisplay |
valueDisplay
Formatting information for the textual display of the value, including
font, color and a mask.
|
protected ValueLocationEnum |
valueLocationObject
Specifies where the textual display of the value should be shown.
|
backcolor, backgroundAlphaFloat, chart, foregroundAlphaFloat, labelRotationDouble, orientationValue, PROPERTY_BACKCOLOR, PROPERTY_BACKGROUND_ALPHA, PROPERTY_FOREGROUND_ALPHA, PROPERTY_LABEL_ROTATION, PROPERTY_ORIENTATION, PROPERTY_SERIES_COLORS, seriesColors
Constructor and Description |
---|
JRBaseThermometerPlot(JRChartPlot plot,
JRChart chart)
Constructs a new thermometer plot that is a copy of an existing one.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone(JRChart parentChart) |
void |
collectExpressions(JRExpressionCollector collector)
Adds all the expression used by this plot with the specified collector.
|
JRDataRange |
getDataRange()
Returns the range of values displayed by this thermometer.
|
JRDataRange |
getHighRange()
Returns the high range, or
null if undefined. |
JRDataRange |
getLowRange()
Returns the low range, or
null if undefined. |
JRDataRange |
getMediumRange()
Returns the medium range, or
null if undefined. |
Color |
getMercuryColor()
Returns the color of the "mercury" in the thermometer when the value is
not in a defined range.
|
JRValueDisplay |
getValueDisplay()
Returns formatting information for the textual representation of the value.
|
ValueLocationEnum |
getValueLocationValue()
Returns the location where the value of the thermometer will be shown.
|
boolean |
isShowValueLines()
Deprecated.
No longer used.
|
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlphaFloat, getChart, getEventSupport, getForegroundAlphaFloat, getLabelRotationDouble, getOrientation, getOrientationValue, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setOrientation, setSeriesColors
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlphaFloat, getChart, getForegroundAlphaFloat, getLabelRotationDouble, getOrientation, getOrientationValue, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setOrientation, setSeriesColors
clone
protected JRDataRange dataRange
protected JRValueDisplay valueDisplay
protected boolean showValueLines
protected ValueLocationEnum valueLocationObject
protected Color mercuryColor
protected JRDataRange lowRange
protected JRDataRange mediumRange
protected JRDataRange highRange
public JRBaseThermometerPlot(JRChartPlot plot, JRChart chart)
plot
- the plot to copychart
- the parent chartpublic JRBaseThermometerPlot(JRThermometerPlot thermoPlot, JRBaseObjectFactory factory)
thermoPlot
- the plot to copyfactory
- the factory to register any expressions withpublic JRDataRange getDataRange()
JRThermometerPlot
getDataRange
in interface JRThermometerPlot
public JRValueDisplay getValueDisplay()
JRThermometerPlot
getValueDisplay
in interface JRThermometerPlot
public boolean isShowValueLines()
isShowValueLines
in interface JRThermometerPlot
public ValueLocationEnum getValueLocationValue()
JRThermometerPlot
net.sf.jasperreports.charts.type.ValueLocationEnum.NONE
,
net.sf.jasperreports.charts.type.ValueLocationEnum.LEFT
, net.sf.jasperreports.charts.type.ValueLocationEnum.RIGHT
or
net.sf.jasperreports.charts.type.ValueLocationEnum.BULB
.getValueLocationValue
in interface JRThermometerPlot
public Color getMercuryColor()
JRThermometerPlot
getMercuryColor
in interface JRThermometerPlot
public JRDataRange getLowRange()
JRThermometerPlot
null
if undefined.getLowRange
in interface JRThermometerPlot
null
if undefined.public JRDataRange getMediumRange()
JRThermometerPlot
null
if undefined.getMediumRange
in interface JRThermometerPlot
null
if undefined.public JRDataRange getHighRange()
JRThermometerPlot
null
if undefined.getHighRange
in interface JRThermometerPlot
null
if undefined.public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRChartPlot
collector
- the expression collector to usepublic Object clone(JRChart parentChart)
clone
in interface JRChartPlot
clone
in class JRBaseChartPlot
Copyright © 2013. All Rights Reserved.