public class ReferenceArea extends Object
Constructor and Description |
---|
ReferenceArea(String label,
double start,
double end,
Color areaColor,
float alpha)
Creates a new ReferenceArea.
|
Modifier and Type | Method and Description |
---|---|
float |
getAlpha()
Get the alpha level.
|
Color |
getAreaColor()
Get the area color.
|
double |
getEnd()
Get the end value.
|
String |
getLabel()
Returns the label.
|
double |
getStart()
Get the start value.
|
void |
setAlpha(float alpha)
Set the alpha level.
|
void |
setAreaColor(Color areaColor)
Set the area color.
|
void |
setEnd(double end)
Set the end value.
|
void |
setLabel(String label)
Sets the label.
|
void |
setStart(double start)
Set the start value.
|
public ReferenceArea(String label, double start, double end, Color areaColor, float alpha) throws IllegalArgumentException
label
- the reference labelstart
- the start of the reference areaend
- the end of the reference areaareaColor
- the color of the reference areaalpha
- the alpha level of the reference area, range: 0.0 to 1.0IllegalArgumentException
- alpha must be in the range 0.0 to 1.0public String getLabel()
public void setLabel(String label)
label
- the label to setpublic double getStart()
public void setStart(double start)
start
- the start to setpublic double getEnd()
public void setEnd(double end)
end
- the end to setpublic Color getAreaColor()
public void setAreaColor(Color areaColor)
areaColor
- the areaColor to setpublic float getAlpha()
public void setAlpha(float alpha)
alpha
- the alpha level to setCopyright © 2016. All rights reserved.