public class JRBaseMeterPlot extends JRBaseChartPlot implements JRMeterPlot
JRBaseChartPlot.JRBaseSeriesColor
JRChartPlot.JRSeriesColor
Modifier and Type | Field and Description |
---|---|
protected JRDataRange |
dataRange
The range displayed by the Meter.
|
protected List<JRMeterInterval> |
intervals
The defined intervals for the Meter.
|
protected Integer |
meterAngleInteger
The extend of the meter face in degrees.
|
protected Color |
meterBackgroundColor
The color to use for the face of the meter.
|
protected Color |
needleColor
The color to use for the pointer on the meter.
|
protected MeterShapeEnum |
shapeValue
The shape to use when drawing the Meter.
|
protected Color |
tickColor
The color to use for each tick on the face of the meter.
|
protected Integer |
tickCount
The number of major ticks on the meter scale.
|
protected Double |
tickIntervalDouble
How often to draw ticks around the face of the meter.
|
protected JRFont |
tickLabelFont
The font to use when writing tick labels.
|
protected String |
units
Optional description of what the meter is displaying.
|
protected JRValueDisplay |
valueDisplay
Formatting information for the textual display of the value.
|
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 |
---|
JRBaseMeterPlot(JRChartPlot plot,
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.
|
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 that the Meter can display.
|
List<JRMeterInterval> |
getIntervals()
Returns a list of all the intervals contained in this Meter.
|
Integer |
getMeterAngleInteger()
Returns the size of the Meter face in degrees.
|
Color |
getMeterBackgroundColor()
Returns the background color of the meter.
|
Color |
getNeedleColor()
Returns the color used when drawing the meter's pointer.
|
MeterShapeEnum |
getShapeValue()
Returns the shape of the Meter.
|
Color |
getTickColor()
Returns the color used when drawing tick marks on the meter.
|
Integer |
getTickCount()
Returns the number of major ticks on the meter scale.
|
Double |
getTickIntervalDouble()
Returns the spacing between the ticks on the face of the meter.
|
JRFont |
getTickLabelFont()
Returns the font used to write tick labels on the meter.
|
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.
|
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlphaFloat, getChart, getEventSupport, getForegroundAlphaFloat, getLabelRotationDouble, getOrientation, getOrientationValue, getOwnBackcolor, getSeriesColors, getStyleResolver, 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 MeterShapeEnum shapeValue
protected List<JRMeterInterval> intervals
protected Integer meterAngleInteger
protected String units
protected Double tickIntervalDouble
protected Color meterBackgroundColor
protected Color needleColor
protected Color tickColor
protected Integer tickCount
protected JRFont tickLabelFont
public JRBaseMeterPlot(JRChartPlot plot, JRChart chart)
plot
- the plot to copypublic JRBaseMeterPlot(JRMeterPlot meterPlot, JRBaseObjectFactory factory)
meterPlot
- the meter to copyfactory
- the factory to register expressions withpublic JRDataRange getDataRange()
JRMeterPlot
getDataRange
in interface JRMeterPlot
public JRValueDisplay getValueDisplay()
JRMeterPlot
getValueDisplay
in interface JRMeterPlot
public MeterShapeEnum getShapeValue()
JRMeterPlot
MeterShapeEnum
.getShapeValue
in interface JRMeterPlot
public List<JRMeterInterval> getIntervals()
JRMeterPlot
null
but can be an empty list. Each element in the list is a
JRMeterInterval
getIntervals
in interface JRMeterPlot
public Integer getMeterAngleInteger()
JRMeterPlot
getMeterAngleInteger
in interface JRMeterPlot
public String getUnits()
JRMeterPlot
getUnits
in interface JRMeterPlot
public Double getTickIntervalDouble()
JRMeterPlot
getTickIntervalDouble
in interface JRMeterPlot
public Color getMeterBackgroundColor()
JRMeterPlot
getMeterBackgroundColor
in interface JRMeterPlot
public Color getNeedleColor()
JRMeterPlot
getNeedleColor
in interface JRMeterPlot
public Color getTickColor()
JRMeterPlot
getTickColor
in interface JRMeterPlot
public Integer getTickCount()
JRMeterPlot
getTickCount
in interface JRMeterPlot
public JRFont getTickLabelFont()
JRMeterPlot
getTickLabelFont
in interface JRMeterPlot
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 © 2021 TIBCO Software Inc.. All rights reserved.