Class DatasetJson

java.lang.Object
com.digitizer.io.DatasetJson

public class DatasetJson extends Object
Data model for JSON serialization of datasets. Represents a single dataset with its metadata and points.
  • Field Details

    • name

      @SerializedName("name") public String name
    • color

      @SerializedName("color") public String color
    • points

      @SerializedName("points") public List<List<Double>> points
    • visible

      @SerializedName("visible") public boolean visible
    • useSecondaryY

      @SerializedName("use_secondary_y") public boolean useSecondaryY
  • Constructor Details

    • DatasetJson

      public DatasetJson()
      Constructs a new DatasetJson with empty points list.
    • DatasetJson

      public DatasetJson(String name, String color, List<List<Double>> points)
      Constructs a DatasetJson with all fields.
      Parameters:
      name - the dataset name
      color - the hex color string
      points - the list of [x, y] coordinate pairs
    • DatasetJson

      public DatasetJson(String name, String color, List<List<Double>> points, boolean visible)
    • DatasetJson

      public DatasetJson(String name, String color, List<List<Double>> points, boolean visible, boolean useSecondaryY)