Class ProjectJson

java.lang.Object
com.digitizer.io.ProjectJson

public class ProjectJson extends Object
Root data model for JSON file format. Represents the complete application state: title, labels, axes, and datasets.
  • Field Details

    • title

      @SerializedName("title") public String title
    • xlabel

      @SerializedName("xlabel") public String xlabel
    • ylabel

      @SerializedName("ylabel") public String ylabel
    • xMin

      @SerializedName("x_min") public double xMin
    • xMax

      @SerializedName("x_max") public double xMax
    • yMin

      @SerializedName("y_min") public double yMin
    • yMax

      @SerializedName("y_max") public double yMax
    • xLog

      @SerializedName("x_log") public boolean xLog
    • yLog

      @SerializedName("y_log") public boolean yLog
    • y2Min

      @SerializedName("y2_min") public Double y2Min
    • y2Max

      @SerializedName("y2_max") public Double y2Max
    • y2Log

      @SerializedName("y2_log") public Boolean y2Log
    • datasets

      @SerializedName("datasets") public List<DatasetJson> datasets
  • Constructor Details

    • ProjectJson

      public ProjectJson()
      Constructs a new ProjectJson with default values.
    • ProjectJson

      public ProjectJson(String title, String xlabel, String ylabel, double xMin, double xMax, double yMin, double yMax, boolean xLog, boolean yLog, List<DatasetJson> datasets)
      Constructs a new ProjectJson with all fields.
      Parameters:
      title - the project title
      xlabel - the x-axis label
      ylabel - the y-axis label
      xMin - minimum x value
      xMax - maximum x value
      yMin - minimum y value
      yMax - maximum y value
      xLog - whether x-axis is logarithmic
      yLog - whether y-axis is logarithmic
      datasets - the list of datasets