Package no.uib.jsparklines.data
Class JSparklines3dDataSeries
java.lang.Object
no.uib.jsparklines.data.JSparklines3dDataSeries
public class JSparklines3dDataSeries extends Object
Object containing a 3D sparkline data series to be added to a
JSparklines3dDataset.
- Author:
- Harald Barsnes
-
Constructor Summary
Constructors Constructor Description JSparklines3dDataSeries(ArrayList<XYZDataPoint> data, Color seriesColor, String seriesLabel)
Creates a new JSparklines3dDataSeries. -
Method Summary
Modifier and Type Method Description ArrayList<XYZDataPoint>
getData()
Returns the sparkline data.Color
getSeriesColor()
Returns the series color.String
getSeriesLabel()
Returns the label for the series.void
setData(ArrayList<XYZDataPoint> data)
Sets the sparkline data.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.
-
Constructor Details
-
JSparklines3dDataSeries
public JSparklines3dDataSeries(ArrayList<XYZDataPoint> data, Color seriesColor, String seriesLabel)Creates a new JSparklines3dDataSeries.- Parameters:
data
- the data to plotseriesColor
- the color to use for the seriesseriesLabel
- the data series label
-
-
Method Details
-
getData
Returns the sparkline data.- Returns:
- the sparkline data
-
setData
Sets the sparkline data.- Parameters:
data
- the data to set
-
getSeriesColor
Returns the series color.- Returns:
- the seriesColor
-
setSeriesColor
Sets the series color.- Parameters:
seriesColor
- the seriesColor to set
-
getSeriesLabel
Returns the label for the series.- Returns:
- the seriesLabel
-
setSeriesLabel
Set the label for the series.- Parameters:
seriesLabel
- the seriesLabel to set
-
toString
Returns the value as a string. Note that the values are rounded to two decimals.
-