public class JRMeterInterval extends Object implements JRCloneable, Serializable
Modifier and Type | Field and Description |
---|---|
protected Double |
alphaDouble
Transparency of the interval's color.
|
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 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 |
---|---|
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.
|
public static final double DEFAULT_TRANSPARENCY
protected JRDataRange dataRange
protected String label
protected Color backgroundColor
protected 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 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 JRCloneable
clone
in class Object
Copyright © 2016. All rights reserved.