|
||||||||||
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
net.sf.jasperreports.charts.design.JRDesignMeterPlot
public class JRDesignMeterPlot
A meter plot that displays a single value against a range of values. The range can be further subdivided into multiple color coded regions.
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 | |
---|---|
static java.lang.String |
PROPERTY_DATA_RANGE
|
static java.lang.String |
PROPERTY_INTERVALS
|
static java.lang.String |
PROPERTY_METER_ANGLE
|
static java.lang.String |
PROPERTY_METER_BACKGROUND_COLOR
|
static java.lang.String |
PROPERTY_NEEDLE_COLOR
|
static java.lang.String |
PROPERTY_SHAPE
|
static java.lang.String |
PROPERTY_TICK_COLOR
|
static java.lang.String |
PROPERTY_TICK_INTERVAL
|
static java.lang.String |
PROPERTY_TICK_LABEL_FONT
|
static java.lang.String |
PROPERTY_UNITS
|
static java.lang.String |
PROPERTY_VALUE_DISPLAY
|
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseMeterPlot |
---|
dataRange, intervals, meterAngleInteger, meterBackgroundColor, needleColor, shapeValue, tickColor, tickIntervalDouble, tickLabelFont, units, valueDisplay |
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot |
---|
backcolor, backgroundAlphaFloat, chart, foregroundAlphaFloat, labelRotationDouble, 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_DIAL, SHAPE_PIE |
Constructor Summary | |
---|---|
JRDesignMeterPlot(JRChartPlot meterPlot,
JRChart chart)
Construct a new meter plot by copying an existing one. |
Method Summary | |
---|---|
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(java.util.Collection intervals)
Sets the meter intervals. |
void |
setMeterAngle(int meterAngle)
Deprecated. Replaced by setMeterAngle(Integer) |
void |
setMeterAngle(java.lang.Integer meterAngle)
Sets the size of the meter face in degrees. |
void |
setMeterBackgroundColor(java.awt.Color meterBackgroundColor)
Sets the color to use for the meter face. |
void |
setNeedleColor(java.awt.Color needleColor)
Sets the color to use for the meter pointer. |
void |
setShape(byte shape)
Deprecated. Replaced by setShape(MeterShapeEnum) |
void |
setShape(java.lang.Byte shape)
Deprecated. Replaced by setShape(MeterShapeEnum) |
void |
setShape(MeterShapeEnum shape)
Sets the shape of the meter. |
void |
setTickColor(java.awt.Color tickColor)
Sets the color to use when drawing tick marks on the meter. |
void |
setTickInterval(double tickInterval)
Deprecated. Replaced by setTickInterval(Double) |
void |
setTickInterval(java.lang.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(java.lang.String units)
Sets the units string to use. |
void |
setValueDisplay(JRValueDisplay valueDisplay)
Sets the value display formatting options. |
Methods inherited from class net.sf.jasperreports.charts.base.JRBaseMeterPlot |
---|
clone, collectExpressions, getDataRange, getIntervals, getMeterAngle, getMeterAngleInteger, getMeterBackgroundColor, getNeedleColor, getShape, getShapeByte, getShapeValue, getTickColor, getTickInterval, getTickIntervalDouble, getTickLabelFont, getUnits, getValueDisplay |
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseChartPlot |
---|
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlpha, getBackgroundAlphaFloat, getChart, getEventSupport, getForegroundAlpha, getForegroundAlphaFloat, getLabelRotation, getLabelRotationDouble, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setBackgroundAlpha, setForegroundAlpha, setForegroundAlpha, setLabelRotation, 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, getBackcolor, getBackgroundAlpha, getBackgroundAlphaFloat, getChart, getForegroundAlpha, getForegroundAlphaFloat, getLabelRotation, getLabelRotationDouble, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setBackgroundAlpha, setForegroundAlpha, setForegroundAlpha, setLabelRotation, setLabelRotation, setOrientation, setSeriesColors |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Field Detail |
---|
public static final java.lang.String PROPERTY_DATA_RANGE
public static final java.lang.String PROPERTY_METER_ANGLE
public static final java.lang.String PROPERTY_METER_BACKGROUND_COLOR
public static final java.lang.String PROPERTY_NEEDLE_COLOR
public static final java.lang.String PROPERTY_SHAPE
public static final java.lang.String PROPERTY_TICK_COLOR
public static final java.lang.String PROPERTY_TICK_INTERVAL
public static final java.lang.String PROPERTY_UNITS
public static final java.lang.String PROPERTY_VALUE_DISPLAY
public static final java.lang.String PROPERTY_INTERVALS
public static final java.lang.String PROPERTY_TICK_LABEL_FONT
Constructor Detail |
---|
public JRDesignMeterPlot(JRChartPlot meterPlot, JRChart chart)
meterPlot
- the plot to copyMethod Detail |
---|
public void setDataRange(JRDataRange dataRange) throws JRException
dataRange
- the range of values that the meter can display
JRException
public void setValueDisplay(JRValueDisplay valueDisplay)
valueDisplay
- how to show the textual representation of the valuepublic void setShape(byte shape) throws JRException
setShape(MeterShapeEnum)
JRException
public void setShape(java.lang.Byte shape) throws JRException
setShape(MeterShapeEnum)
JRException
public void setShape(MeterShapeEnum shape) throws JRException
MeterShapeEnum.CHORD
, MeterShapeEnum.CIRCLE
,
MeterShapeEnum.PIE
or MeterShapeEnum.DIAL
.
shape
- the shape of the meter
JRException
- invalid shape was specifiedpublic void addInterval(JRMeterInterval interval)
interval
- the interval to add to the meterpublic void clearIntervals()
public void setIntervals(java.util.Collection intervals)
intervals
- the list of meter intervals (JRMeterInterval
instances)addInterval(JRMeterInterval)
public void setMeterAngle(int meterAngle)
setMeterAngle(Integer)
public void setMeterAngle(java.lang.Integer meterAngle)
meterAngle
- the size of the meter in degreespublic void setUnits(java.lang.String units)
units
- the units string to usepublic void setTickInterval(double tickInterval)
setTickInterval(Double)
public void setTickInterval(java.lang.Double tickInterval)
tickInterval
- the space between tick marks on the meterpublic void setMeterBackgroundColor(java.awt.Color meterBackgroundColor)
meterBackgroundColor
- the color to use for the meter facepublic void setNeedleColor(java.awt.Color needleColor)
needleColor
- the color to use for the meter pointerpublic void setTickColor(java.awt.Color tickColor)
tickColor
- the color to use when drawing tick markspublic void setTickLabelFont(JRFont tickLabelFont)
tickLabelFont
- the font to use when displaying the tick label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |