|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 Double |
alphaDouble
Transparency of the interval's color. 1.0 is fully opaque, 0.0 is fully transparent. |
protected 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 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 | |
|---|---|
Object |
clone()
|
Double |
getAlphaDouble()
Returns the transparency of the interval color, with 0.0 being fully transparent and 1.0 being fully opaque. |
Color |
getBackgroundColor()
Returns the color used to shade this interval. |
JRDataRange |
getDataRange()
Returns the range this interval is for. |
String |
getLabel()
The text describing this range. |
void |
setAlpha(Double alpha)
Sets the transparency of the interval color, with 0.0 being fully transparent and 1.0 being fully opaque. |
void |
setBackgroundColor(Color backgroundColor)
Specifies the color to use to shade this interval. |
void |
setDataRange(JRDataRange dataRange)
Sets the range for this interval. |
void |
setLabel(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 String label
protected Color backgroundColor
protected Double alphaDouble
| Constructor Detail |
|---|
public JRMeterInterval()
public JRMeterInterval(JRMeterInterval meterInterval,
JRBaseObjectFactory factory)
meterInterval - the interval to copyfactory - factory object to register expressions with| Method Detail |
|---|
public JRDataRange getDataRange()
public void setDataRange(JRDataRange dataRange)
dataRange - the range of this intervalpublic String getLabel()
public void setLabel(String label)
label - the textual description of this rangepublic Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
backgroundColor - the color to use to shade this intervalpublic Double getAlphaDouble()
public void setAlpha(Double alpha)
alpha - the transparency of the interval colorpublic Object clone()
clone in interface JRCloneableclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||