public class JRMeterInterval extends java.lang.Object implements JRCloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
alphaDouble
Transparency of the interval's color.
|
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 and Description |
---|
JRMeterInterval()
Construct an empty interval.
|
JRMeterInterval(JRMeterInterval meterInterval,
JRBaseObjectFactory factory)
Construct a new interval by copying an existing one.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
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(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.
|
public static final double DEFAULT_TRANSPARENCY
protected JRDataRange dataRange
protected java.lang.String label
protected java.awt.Color backgroundColor
protected java.lang.Double alphaDouble
public JRMeterInterval()
public JRMeterInterval(JRMeterInterval meterInterval, JRBaseObjectFactory factory)
meterInterval
- the interval to copyfactory
- factory object to register expressions withpublic 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 java.lang.Double getAlphaDouble()
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
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com