Package com.digitizer.io
Class ProjectJson
java.lang.Object
com.digitizer.io.ProjectJson
Root data model for JSON file format.
Represents the complete application state: title, labels, axes, and datasets.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ProjectJson with default values.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. -
Method Summary
-
Field Details
-
title
-
xlabel
-
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
-
y2Max
-
y2Log
-
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 titlexlabel- the x-axis labelylabel- the y-axis labelxMin- minimum x valuexMax- maximum x valueyMin- minimum y valueyMax- maximum y valuexLog- whether x-axis is logarithmicyLog- whether y-axis is logarithmicdatasets- the list of datasets
-