|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.base.JRBaseChartPlot
net.sf.jasperreports.charts.base.JRBaseMeterPlot
public class JRBaseMeterPlot
An immutable representation of the layout of a Meter chart.
| 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 displayed by the Meter. |
protected java.util.List |
intervals
The defined intervals for the Meter. |
protected int |
meterAngle
The extend of the meter face in degrees. |
protected java.awt.Color |
meterBackgroundColor
The color to use for the face of the meter. |
protected java.awt.Color |
needleColor
The color to use for the pointer on the meter. |
protected byte |
shape
The shape to use when drawing the Meter. |
protected java.awt.Color |
tickColor
The color to use for each tick on the face of the meter. |
protected double |
tickInterval
How often to draw ticks around the face of the meter. |
protected java.lang.String |
units
Optional description of what the meter is displaying. |
protected JRValueDisplay |
valueDisplay
Formatting information for the textual display of the value. |
| Fields inherited from class net.sf.jasperreports.engine.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 |
| Fields inherited from interface net.sf.jasperreports.charts.JRMeterPlot |
|---|
SHAPE_CHORD, SHAPE_CIRCLE, SHAPE_PIE |
| Constructor Summary | |
|---|---|
JRBaseMeterPlot(JRChartPlot meterPlot,
JRChart chart)
Constructs a copy of an existing meter. |
|
JRBaseMeterPlot(JRMeterPlot meterPlot,
JRBaseObjectFactory factory)
Constructs a copy of an existing meter and registers all expressions maintained by the meter plot with a 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 that the Meter can display. |
java.util.List |
getIntervals()
Returns a list of all the intervals contained in this Meter. |
int |
getMeterAngle()
Returns the size of the Meter face in degrees. |
java.awt.Color |
getMeterBackgroundColor()
Returns the background color of the meter. |
java.awt.Color |
getNeedleColor()
Returns the color used when drawing the meter's pointer. |
byte |
getShape()
Returns the shape of the Meter. |
java.awt.Color |
getTickColor()
Returns the color used when drawing tick marks on the meter. |
double |
getTickInterval()
Returns the spacing between the ticks on the face of the meter. |
java.lang.String |
getUnits()
Returns the name of the units that the Meter is displaying. |
JRValueDisplay |
getValueDisplay()
Returns a description of how the value of the Meter is displayed. |
| Methods inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot |
|---|
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlpha, getChart, getEventSupport, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jasperreports.engine.JRChartPlot |
|---|
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlpha, getChart, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors |
| Field Detail |
|---|
protected JRDataRange dataRange
protected JRValueDisplay valueDisplay
protected byte shape
protected java.util.List intervals
protected int meterAngle
protected java.lang.String units
protected double tickInterval
protected java.awt.Color meterBackgroundColor
protected java.awt.Color needleColor
protected java.awt.Color tickColor
| Constructor Detail |
|---|
public JRBaseMeterPlot(JRChartPlot meterPlot,
JRChart chart)
meterPlot - the meter to copy
public JRBaseMeterPlot(JRMeterPlot meterPlot,
JRBaseObjectFactory factory)
meterPlot - the meter to copyfactory - the factory to register expressions with| Method Detail |
|---|
public JRDataRange getDataRange()
JRMeterPlot
getDataRange in interface JRMeterPlotpublic JRValueDisplay getValueDisplay()
JRMeterPlot
getValueDisplay in interface JRMeterPlotpublic byte getShape()
JRMeterPlotSHAPE_ constants defined in this class.
getShape in interface JRMeterPlotpublic java.util.List getIntervals()
JRMeterPlotnull but can be an empty list. Each element in the list is a
net.sf.jasperreports.charts.util.JRMeterInterval
getIntervals in interface JRMeterPlotpublic int getMeterAngle()
JRMeterPlot
getMeterAngle in interface JRMeterPlotpublic java.lang.String getUnits()
JRMeterPlot
getUnits in interface JRMeterPlotpublic double getTickInterval()
JRMeterPlot
getTickInterval in interface JRMeterPlotpublic java.awt.Color getMeterBackgroundColor()
JRMeterPlot
getMeterBackgroundColor in interface JRMeterPlotpublic java.awt.Color getNeedleColor()
JRMeterPlot
getNeedleColor in interface JRMeterPlotpublic java.awt.Color getTickColor()
JRMeterPlot
getTickColor in interface JRMeterPlotpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRChartPlotcollector - the expression collector to usepublic java.lang.Object clone(JRChart parentChart)
clone in interface JRChartPlotclone in class JRBaseChartPlot
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||