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 Details

    • JSparklines3dDataSeries

      public JSparklines3dDataSeries​(ArrayList<XYZDataPoint> data, Color seriesColor, String seriesLabel)
      Creates a new JSparklines3dDataSeries.
      Parameters:
      data - the data to plot
      seriesColor - the color to use for the series
      seriesLabel - the data series label
  • Method Details

    • getData

      public ArrayList<XYZDataPoint> getData()
      Returns the sparkline data.
      Returns:
      the sparkline data
    • setData

      public void setData​(ArrayList<XYZDataPoint> data)
      Sets the sparkline data.
      Parameters:
      data - the data to set
    • getSeriesColor

      public Color getSeriesColor()
      Returns the series color.
      Returns:
      the seriesColor
    • setSeriesColor

      public void setSeriesColor​(Color seriesColor)
      Sets the series color.
      Parameters:
      seriesColor - the seriesColor to set
    • getSeriesLabel

      public String getSeriesLabel()
      Returns the label for the series.
      Returns:
      the seriesLabel
    • setSeriesLabel

      public void setSeriesLabel​(String seriesLabel)
      Set the label for the series.
      Parameters:
      seriesLabel - the seriesLabel to set
    • toString

      public String toString()
      Returns the value as a string. Note that the values are rounded to two decimals.
      Overrides:
      toString in class Object
      Returns:
      the values as a string