first step to show plot on dashboard

This commit is contained in:
2023-02-26 14:07:19 +01:00
parent ea3ccabe56
commit fb5c8ea019
19 changed files with 114 additions and 55 deletions

View File

@@ -22,6 +22,8 @@ public class Dashboard {
private List<TextWidget> texts = new ArrayList<>();
private List<PlotWidget> plots = new ArrayList<>();
public Dashboard() {
super();
@@ -68,4 +70,11 @@ public class Dashboard {
this.texts = texts;
}
public void setPlots(final List<PlotWidget> plots) {
this.plots = plots;
}
public List<PlotWidget> getPlots() {
return plots;
}
}

View File

@@ -1,12 +1,16 @@
package org.lucares.pdbui.dashboard;
import org.lucares.pdbui.domain.PlotConfig;
public class PlotWidget extends BaseDashboardWidget {
public PlotWidget() {
super();
private PlotConfig config;
public PlotConfig getConfig() {
return config;
}
public PlotWidget(final DashboardWidgetSize size) {
super(DashboardWidgetType.PLOT, size);
public void setConfig(final PlotConfig config) {
this.config = config;
}
}