|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.base.JRBaseChartPlot net.sf.jasperreports.charts.base.JRBaseThermometerPlot
public class JRBaseThermometerPlot
An immutable representation of the layout of a thermometer plot.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot |
---|
JRBaseChartPlot.JRBaseSeriesColor |
Nested classes/interfaces inherited from interface net.sf.jasperreports.engine.JRChartPlot |
---|
JRChartPlot.JRSeriesColor |
Field Summary | |
---|---|
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 java.awt.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. |
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot |
---|
backcolor, backgroundAlphaFloat, chart, foregroundAlphaFloat, labelRotationDouble, orientationValue, PROPERTY_BACKCOLOR, PROPERTY_BACKGROUND_ALPHA, PROPERTY_FOREGROUND_ALPHA, PROPERTY_LABEL_ROTATION, PROPERTY_ORIENTATION, PROPERTY_SERIES_COLORS, seriesColors |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
java.lang.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. |
java.awt.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. |
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot |
---|
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlphaFloat, getChart, getEventSupport, getForegroundAlphaFloat, getLabelRotationDouble, getOrientation, getOrientationValue, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, 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.engine.JRChartPlot |
---|
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlphaFloat, getChart, getForegroundAlphaFloat, getLabelRotationDouble, getOrientation, getOrientationValue, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setOrientation, setSeriesColors |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Field Detail |
---|
protected JRDataRange dataRange
protected JRValueDisplay valueDisplay
protected boolean showValueLines
protected ValueLocationEnum valueLocationObject
protected java.awt.Color mercuryColor
protected JRDataRange lowRange
protected JRDataRange mediumRange
protected JRDataRange highRange
Constructor Detail |
---|
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 withMethod Detail |
---|
public 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 java.awt.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 java.lang.Object clone(JRChart parentChart)
clone
in interface JRChartPlot
clone
in class JRBaseChartPlot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |