public class ReferenceLine extends Object
Constructor and Description |
---|
ReferenceLine(String label,
double value,
float lineWidth,
Color lineColor)
Create a new reference line.
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Return the label.
|
Color |
getLineColor()
Set the line color.
|
float |
getLineWidth()
Return the line width.
|
double |
getValue()
Get the value.
|
void |
setLabel(String label)
Set the label.
|
void |
setLineColor(Color lineColor)
Set the line color.
|
void |
setLineWidth(float lineWidth)
Set the line width,
|
void |
setValue(double value)
Set the value.
|
public ReferenceLine(String label, double value, float lineWidth, Color lineColor)
label
- the label of the reference linevalue
- the value of the reference linelineWidth
- the line width, has to non-negativelineColor
- the line colorIllegalArgumentException
- line width has to be non-negativepublic String getLabel()
public void setLabel(String label)
label
- the label to setpublic double getValue()
public void setValue(double value)
value
- the value to setpublic float getLineWidth()
public void setLineWidth(float lineWidth)
lineWidth
- the lineWidth to setpublic Color getLineColor()
public void setLineColor(Color lineColor)
lineColor
- the lineColor to setCopyright © 2016. All rights reserved.