Package net.sf.jasperreports.charts.fill
Class JRFillMeterPlot
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillChartPlot
-
- net.sf.jasperreports.charts.fill.JRFillMeterPlot
-
- All Implemented Interfaces:
Cloneable,JRMeterPlot,JRChartPlot,JRCloneable
public class JRFillMeterPlot extends JRFillChartPlot implements JRMeterPlot
- Author:
- Barry Klawans (bklawans@users.sourceforge.net)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sf.jasperreports.engine.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillChartPlot
chart, parent
-
-
Constructor Summary
Constructors Constructor Description JRFillMeterPlot(JRMeterPlot meterPlot, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JRDataRangegetDataRange()Returns the range of values that the Meter can display.List<JRMeterInterval>getIntervals()Returns a list of all the intervals contained in this Meter.IntegergetMeterAngleInteger()Returns the size of the Meter face in degrees.ColorgetMeterBackgroundColor()Returns the background color of the meter.ColorgetNeedleColor()Returns the color used when drawing the meter's pointer.MeterShapeEnumgetShapeValue()Returns the shape of the Meter.ColorgetTickColor()Returns the color used when drawing tick marks on the meter.IntegergetTickCount()Returns the number of major ticks on the meter scale.DoublegetTickIntervalDouble()Returns the spacing between the ticks on the face of the meter.JRFontgetTickLabelFont()Returns the font used to write tick labels on the meter.StringgetUnits()Returns the name of the units that the Meter is displaying.JRValueDisplaygetValueDisplay()Returns a description of how the value of the Meter is displayed.-
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillChartPlot
addSeriesColor, clearSeriesColors, clone, clone, collectExpressions, getBackcolor, getBackgroundAlphaFloat, getChart, getForegroundAlphaFloat, getLabelRotationDouble, getOrientationValue, getOwnBackcolor, getSeriesColors, getStyleResolver, setBackcolor, setBackgroundAlpha, setBand, 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.engine.JRChartPlot
addSeriesColor, clearSeriesColors, clone, collectExpressions, getBackcolor, getBackgroundAlphaFloat, getChart, getForegroundAlphaFloat, getLabelRotationDouble, getOrientationValue, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
-
-
-
Constructor Detail
-
JRFillMeterPlot
public JRFillMeterPlot(JRMeterPlot meterPlot, JRFillObjectFactory factory)
-
-
Method Detail
-
getDataRange
public JRDataRange getDataRange()
Description copied from interface:JRMeterPlotReturns the range of values that the Meter can display.- Specified by:
getDataRangein interfaceJRMeterPlot- Returns:
- the range of values that the Meter can display
-
getValueDisplay
public JRValueDisplay getValueDisplay()
Description copied from interface:JRMeterPlotReturns a description of how the value of the Meter is displayed. This includes any font and color information, the location of the value, a formatting mask and an optional "units" string to append to the value.- Specified by:
getValueDisplayin interfaceJRMeterPlot- Returns:
- a description of how the value of the Meter is displayed.
-
getShapeValue
public MeterShapeEnum getShapeValue()
Description copied from interface:JRMeterPlotReturns the shape of the Meter. The shape is only relevant if the Meter face is over 180 degrees wide, and controls how the portion of the circle described by the Meter but outside of the Meter is drawn. (If the meter is 240 degrees wide the shape setting controls how the remaining 120 degrees is displayed.)
The value returned is one of the shape constants defined inMeterShapeEnum.- Specified by:
getShapeValuein interfaceJRMeterPlot- Returns:
- a description of how the value of the Meter is displayed.
-
getIntervals
public List<JRMeterInterval> getIntervals()
Description copied from interface:JRMeterPlotReturns a list of all the intervals contained in this Meter. The return value is nevernullbut can be an empty list. Each element in the list is aJRMeterInterval- Specified by:
getIntervalsin interfaceJRMeterPlot- Returns:
- a list of all the intervals contained in this Meter
-
getMeterAngleInteger
public Integer getMeterAngleInteger()
Description copied from interface:JRMeterPlotReturns the size of the Meter face in degrees. By default the meter dial is a semicircle.- Specified by:
getMeterAngleIntegerin interfaceJRMeterPlot- Returns:
- the size of the Meter face in degrees
-
getUnits
public String getUnits()
Description copied from interface:JRMeterPlotReturns the name of the units that the Meter is displaying. This value will be appended to the value when displayed.- Specified by:
getUnitsin interfaceJRMeterPlot- Returns:
- the name of the units that the Meter is displaying
-
getTickIntervalDouble
public Double getTickIntervalDouble()
Description copied from interface:JRMeterPlotReturns the spacing between the ticks on the face of the meter. The spacing is relative to the range that the meter is displaying - if the range is 0 to 500 and the tick interval is 50 then 10 ticks will be displayed.- Specified by:
getTickIntervalDoublein interfaceJRMeterPlot- Returns:
- the spacing between the ticks on the face of the meter
-
getMeterBackgroundColor
public Color getMeterBackgroundColor()
Description copied from interface:JRMeterPlotReturns the background color of the meter. This is the color of the meter's face.- Specified by:
getMeterBackgroundColorin interfaceJRMeterPlot- Returns:
- the background color of the meter.
-
getNeedleColor
public Color getNeedleColor()
Description copied from interface:JRMeterPlotReturns the color used when drawing the meter's pointer.- Specified by:
getNeedleColorin interfaceJRMeterPlot- Returns:
- the color used when drawing the meter's pointer
-
getTickColor
public Color getTickColor()
Description copied from interface:JRMeterPlotReturns the color used when drawing tick marks on the meter.- Specified by:
getTickColorin interfaceJRMeterPlot- Returns:
- the color used when drawing tick marks on the meter
-
getTickCount
public Integer getTickCount()
Description copied from interface:JRMeterPlotReturns the number of major ticks on the meter scale.- Specified by:
getTickCountin interfaceJRMeterPlot- Returns:
- the spacing between the ticks on the face of the meter
-
getTickLabelFont
public JRFont getTickLabelFont()
Description copied from interface:JRMeterPlotReturns the font used to write tick labels on the meter.- Specified by:
getTickLabelFontin interfaceJRMeterPlot- Returns:
- the font used to write tick labels on the meter
-
-