|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.charts.util.JRMeterInterval
public class JRMeterInterval
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.
Field Summary | |
---|---|
protected java.lang.Double |
alphaDouble
Transparency of the interval's color. 1.0 is fully opaque, 0.0 is fully transparent. |
protected java.awt.Color |
backgroundColor
Color to use to shade in this region on the meter's face. |
protected JRDataRange |
dataRange
The range of this interval. |
static double |
DEFAULT_TRANSPARENCY
|
protected java.lang.String |
label
The label of this interval. |
Constructor Summary | |
---|---|
JRMeterInterval()
Construct an empty interval. |
|
JRMeterInterval(JRMeterInterval meterInterval,
JRBaseObjectFactory factory)
Construct a new interval by copying an existing one. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
double |
getAlpha()
Deprecated. Replaced by getAlphaDouble() |
java.lang.Double |
getAlphaDouble()
Returns the transparency of the interval color, with 0.0 being fully transparent and 1.0 being fully opaque. |
java.awt.Color |
getBackgroundColor()
Returns the color used to shade this interval. |
JRDataRange |
getDataRange()
Returns the range this interval is for. |
java.lang.String |
getLabel()
The text describing this range. |
void |
setAlpha(double alpha)
Deprecated. Replaced by setAlpha(Double) |
void |
setAlpha(java.lang.Double alpha)
Sets the transparency of the interval color, with 0.0 being fully transparent and 1.0 being fully opaque. |
void |
setBackgroundColor(java.awt.Color backgroundColor)
Specifies the color to use to shade this interval. |
void |
setDataRange(JRDataRange dataRange)
Sets the range for this interval. |
void |
setLabel(java.lang.String label)
Sets the textual description of this range. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_TRANSPARENCY
protected JRDataRange dataRange
protected java.lang.String label
protected java.awt.Color backgroundColor
protected java.lang.Double alphaDouble
Constructor Detail |
---|
public JRMeterInterval()
public JRMeterInterval(JRMeterInterval meterInterval, JRBaseObjectFactory factory)
meterInterval
- the interval to copyfactory
- factory object to register expressions withMethod Detail |
---|
public JRDataRange getDataRange()
public void setDataRange(JRDataRange dataRange)
dataRange
- the range of this intervalpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the textual description of this rangepublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor
- the color to use to shade this intervalpublic double getAlpha()
getAlphaDouble()
public java.lang.Double getAlphaDouble()
public void setAlpha(double alpha)
setAlpha(Double)
public void setAlpha(java.lang.Double alpha)
alpha
- the transparency of the interval colorpublic java.lang.Object clone()
clone
in interface JRCloneable
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |