public class JSparklinesDataSeries extends Object
Constructor and Description |
---|
JSparklinesDataSeries(ArrayList<Double> data,
Color seriesColor,
String seriesLabel)
Creates a new JSparklinesDataSeries.
|
JSparklinesDataSeries(ArrayList<Double> data,
Color seriesColor,
String seriesLabel,
BasicStroke lineType)
Creates a new JSparklinesDataSeries.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Double> |
getData()
Returns the sparkline data.
|
BasicStroke |
getLineType()
Returns the properties of the line.
|
Color |
getSeriesColor()
Returns the series color.
|
String |
getSeriesLabel()
Returns the label for the series.
|
void |
setData(ArrayList<Double> data)
Sets the sparkline data.
|
void |
setLineType(BasicStroke lineType)
Set the properties of the line.
|
void |
setSeriesColor(Color seriesColor)
Sets the series color.
|
void |
setSeriesLabel(String seriesLabel)
Set the label for the series.
|
String |
toString()
Returns the value as a string.
|
public JSparklinesDataSeries(ArrayList<Double> data, Color seriesColor, String seriesLabel)
data
- the data to plotseriesColor
- the color to use for the seriesseriesLabel
- the data series labelpublic JSparklinesDataSeries(ArrayList<Double> data, Color seriesColor, String seriesLabel, BasicStroke lineType)
data
- the data to plotseriesColor
- the color to use for the seriesseriesLabel
- the data series labellineType
- the properties of the line when displayed as a line chartpublic void setData(ArrayList<Double> data)
data
- the data to setpublic Color getSeriesColor()
public void setSeriesColor(Color seriesColor)
seriesColor
- the seriesColor to setpublic String getSeriesLabel()
public void setSeriesLabel(String seriesLabel)
seriesLabel
- the seriesLabel to setpublic BasicStroke getLineType()
public void setLineType(BasicStroke lineType)
lineType
- the lineType to setCopyright © 2016. All rights reserved.