public class JRDesignMeterPlot extends JRBaseMeterPlot
JRBaseChartPlot.JRBaseSeriesColorJRChartPlot.JRSeriesColor| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_DATA_RANGE |
static String |
PROPERTY_INTERVALS |
static String |
PROPERTY_METER_ANGLE |
static String |
PROPERTY_METER_BACKGROUND_COLOR |
static String |
PROPERTY_NEEDLE_COLOR |
static String |
PROPERTY_SHAPE |
static String |
PROPERTY_TICK_COLOR |
static String |
PROPERTY_TICK_COUNT |
static String |
PROPERTY_TICK_INTERVAL |
static String |
PROPERTY_TICK_LABEL_FONT |
static String |
PROPERTY_UNITS |
static String |
PROPERTY_VALUE_DISPLAY |
dataRange, intervals, meterAngleInteger, meterBackgroundColor, needleColor, shapeValue, tickColor, tickCount, tickIntervalDouble, tickLabelFont, units, valueDisplaybackcolor, 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 |
|---|
JRDesignMeterPlot(JRChartPlot plot,
JRChart chart)
Construct a new meter plot by copying an existing one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInterval(JRMeterInterval interval)
Adds an interval to the meter.
|
void |
clearIntervals()
Removes all the intervals for the meter.
|
void |
setDataRange(JRDataRange dataRange)
Sets the range of values that the meter can display.
|
void |
setIntervals(Collection<JRMeterInterval> intervals)
Sets the meter intervals.
|
void |
setMeterAngle(Integer meterAngle)
Sets the size of the meter face in degrees.
|
void |
setMeterBackgroundColor(Color meterBackgroundColor)
Sets the color to use for the meter face.
|
void |
setNeedleColor(Color needleColor)
Sets the color to use for the meter pointer.
|
void |
setShape(MeterShapeEnum shape)
Sets the shape of the meter.
|
void |
setTickColor(Color tickColor)
Sets the color to use when drawing tick marks on the meter.
|
void |
setTickCount(Integer tickCount)
Sets the number of major tick marks on the meter scale.
|
void |
setTickInterval(Double tickInterval)
Sets the space between tick marks on the face of the meter.
|
void |
setTickLabelFont(JRFont tickLabelFont)
Sets the font to use when displaying the tick label.
|
void |
setUnits(String units)
Sets the units string to use.
|
void |
setValueDisplay(JRValueDisplay valueDisplay)
Sets the value display formatting options.
|
clone, collectExpressions, getDataRange, getIntervals, getMeterAngleInteger, getMeterBackgroundColor, getNeedleColor, getShapeValue, getTickColor, getTickCount, getTickIntervalDouble, getTickLabelFont, getUnits, getValueDisplayaddSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlphaFloat, getChart, getEventSupport, getForegroundAlphaFloat, getLabelRotationDouble, getOrientation, getOrientationValue, getOwnBackcolor, getSeriesColors, getStyleResolver, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setOrientation, setSeriesColorsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlphaFloat, getChart, getForegroundAlphaFloat, getLabelRotationDouble, getOrientation, getOrientationValue, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setOrientation, setSeriesColorsclonepublic static final String PROPERTY_DATA_RANGE
public static final String PROPERTY_METER_ANGLE
public static final String PROPERTY_METER_BACKGROUND_COLOR
public static final String PROPERTY_NEEDLE_COLOR
public static final String PROPERTY_SHAPE
public static final String PROPERTY_TICK_COLOR
public static final String PROPERTY_TICK_COUNT
public static final String PROPERTY_TICK_INTERVAL
public static final String PROPERTY_UNITS
public static final String PROPERTY_VALUE_DISPLAY
public static final String PROPERTY_INTERVALS
public static final String PROPERTY_TICK_LABEL_FONT
public JRDesignMeterPlot(JRChartPlot plot, JRChart chart)
plot - the plot to copypublic void setDataRange(JRDataRange dataRange) throws JRException
dataRange - the range of values that the meter can displayJRExceptionpublic void setValueDisplay(JRValueDisplay valueDisplay)
valueDisplay - how to show the textual representation of the valuepublic void setShape(MeterShapeEnum shape) throws JRException
shape - the shape of the meterJRException - invalid shape was specifiedpublic void addInterval(JRMeterInterval interval)
interval - the interval to add to the meterpublic void clearIntervals()
public void setIntervals(Collection<JRMeterInterval> intervals)
intervals - the list of meter intervals (JRMeterInterval instances)addInterval(JRMeterInterval)public void setMeterAngle(Integer meterAngle)
meterAngle - the size of the meter in degreespublic void setUnits(String units)
units - the units string to usepublic void setTickInterval(Double tickInterval)
tickInterval - the space between tick marks on the meterpublic void setMeterBackgroundColor(Color meterBackgroundColor)
meterBackgroundColor - the color to use for the meter facepublic void setNeedleColor(Color needleColor)
needleColor - the color to use for the meter pointerpublic void setTickColor(Color tickColor)
tickColor - the color to use when drawing tick markspublic void setTickCount(Integer tickCount)
tickCount - the number of major tick markspublic void setTickLabelFont(JRFont tickLabelFont)
tickLabelFont - the font to use when displaying the tick labelCopyright © 2017. All rights reserved.