|
@@ -31,6 +31,7 @@ import ui.view.Console;
|
|
|
import ui.view.DefaulTable;
|
|
|
import ui.view.PropertyTable;
|
|
|
import ui.view.StatisticGraphPanel;
|
|
|
+import ui.view.StatisticPanel;
|
|
|
|
|
|
/**
|
|
|
* The Class Model is the class where everything is saved. All changes made to
|
|
@@ -131,6 +132,8 @@ public class Model {
|
|
|
private ArrayList<JsonObject> statisticData = new ArrayList<>();
|
|
|
|
|
|
private Gson gson;
|
|
|
+
|
|
|
+ private StatisticPanel statPanel;
|
|
|
|
|
|
/**
|
|
|
* Constructor for the model. It initializes the categories and
|
|
@@ -978,4 +981,12 @@ public class Model {
|
|
|
public void setGson(Gson gson) {
|
|
|
this.gson = gson;
|
|
|
}
|
|
|
+
|
|
|
+ public void setStatPanel(StatisticPanel sP){
|
|
|
+ statPanel = sP;
|
|
|
+ }
|
|
|
+
|
|
|
+ public StatisticPanel getStatPanel(){
|
|
|
+ return statPanel;
|
|
|
+ }
|
|
|
}
|