| java.lang.Object net.sf.jasperreports.charts.util.JRMeterInterval
JRMeterInterval | public class JRMeterInterval implements Serializable(Code) | | Defines a subsection of a meter chart. This section has its own range,
a label, and can shade a section of the meter face with its own color.
Common usages are to show "critical", "warning" and "good" ranges.
author: Barry Klawans (barry@users.sourceforge.net) version: $Id: JRMeterInterval.java 1794 2007-07-30 09:07:50Z teodord $ |
Method Summary | |
public double | getAlpha() Returns the transparency of the interval color, with 0.0 being fully
transparent and 1.0 being fully opaque. | public Color | getBackgroundColor() Returns the color used to shade this interval. | public JRDataRange | getDataRange() Returns the range this interval is for. | public String | getLabel() The text describing this range. | public void | setAlpha(double alpha) Sets the transparency of the interval color, with 0.0 being fully
transparent and 1.0 being fully opaque. | public void | setBackgroundColor(Color backgroundColor) Specifies the color to use to shade this interval. | public void | setDataRange(JRDataRange dataRange) Sets the range for this interval. | public void | setLabel(String label) Sets the textual description of this range. |
alpha | protected double alpha(Code) | | Transparency of the interval's color. 1.0 is fully opaque, 0.0 is
fully transparent.
|
backgroundColor | protected Color backgroundColor(Code) | | Color to use to shade in this region on the meter's face.
|
dataRange | protected JRDataRange dataRange(Code) | | The range of this interval. Must be inside the meter's range.
|
label | protected String label(Code) | | The label of this interval. Only appears in the meter's legend.
|
JRMeterInterval | public JRMeterInterval()(Code) | | Construct an empty interval.
|
JRMeterInterval | public JRMeterInterval(JRMeterInterval meterInterval, JRBaseObjectFactory factory)(Code) | | Construct a new interval by copying an existing one.
Parameters: meterInterval - the interval to copy Parameters: factory - factory object to register expressions with |
getAlpha | public double getAlpha()(Code) | | Returns the transparency of the interval color, with 0.0 being fully
transparent and 1.0 being fully opaque.
the transparency of the interval color |
getBackgroundColor | public Color getBackgroundColor()(Code) | | Returns the color used to shade this interval.
the color used to shade this interval |
getDataRange | public JRDataRange getDataRange()(Code) | | Returns the range this interval is for.
the range of this interval |
getLabel | public String getLabel()(Code) | | The text describing this range. This text only appears in the
meter's legend.
the text describing this range |
setAlpha | public void setAlpha(double alpha)(Code) | | Sets the transparency of the interval color, with 0.0 being fully
transparent and 1.0 being fully opaque.
Parameters: alpha - the transparency of the interval color |
setBackgroundColor | public void setBackgroundColor(Color backgroundColor)(Code) | | Specifies the color to use to shade this interval.
Parameters: backgroundColor - the color to use to shade this interval |
setDataRange | public void setDataRange(JRDataRange dataRange)(Code) | | Sets the range for this interval. The range must be inside the
range of the meter we are going to add the interval to.
Parameters: dataRange - the range of this interval |
setLabel | public void setLabel(String label)(Code) | | Sets the textual description of this range. This text only appears
in the meter's legend.
Parameters: label - the textual description of this range |
|
|