A meter plot that displays a single value against a range of values. The
range can be further subdivided into multiple color coded regions.
author: Barry Klawans (bklawans@users.sourceforge.net) version: $Id: JRDesignMeterPlot.java 1794 2007-07-30 09:07:50Z teodord $
Sets the range of values that the meter can display. Before changing
this for an existing meter you should clear any existing intervals to
ensure that you don't end up with intervals that are outside of the new
range.
Parameters: dataRange - the range of values that the meter can display
Sets the shape of the meter. Must be one of
JRMeterPlot.SHAPE_CHORD, JRMeterPlot.SHAPE_CIRCLE
or JRMeterPlot.SHAPE_PIE.
Parameters: shape - the shape of the meter throws: JRException - invalid shape was specified
Sets the color to use when drawing tick marks on the meter.
Parameters: tickColor - the color to use when drawing tick marks
setTickInterval
public void setTickInterval(double tickInterval)(Code)
Sets the space between tick marks on the face of the meter. The
spacing is relative to the range of the meter. If the meter is
displaying the range 100 to 200 and the tick interval is 20, four
tick marks will be shown, one each at 120, 140, 160 and 180.
Parameters: tickInterval - the space between tick marks on the meter