prepare to have more flexibility when for plots

This commit is contained in:
2023-02-28 19:19:19 +01:00
parent 17c0cd5ca9
commit e3487557b3
4 changed files with 69 additions and 0 deletions

View File

@@ -5,7 +5,9 @@ import java.time.OffsetDateTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.TreeMap;
import java.util.regex.Pattern;
import org.lucares.pdb.api.DateTimeRange;
@@ -47,6 +49,16 @@ public class PlotSettings {
private boolean renderBarChartTickLabels;
private Map<String, RenderOptions> renders = new TreeMap<>();
public void setRenders(final Map<String, RenderOptions> renders) {
this.renders = renders;
}
public Map<String, RenderOptions> getRenders() {
return renders;
}
public String getQuery() {
return query;
}

View File

@@ -0,0 +1,41 @@
package org.lucares.pdb.plot.api;
public class RenderOptions {
private int height;
private int width;
private boolean keyOutside;
private boolean renderLabels;
public int getHeight() {
return height;
}
public void setHeight(final int height) {
this.height = height;
}
public int getWidth() {
return width;
}
public void setWidth(final int width) {
this.width = width;
}
public boolean isKeyOutside() {
return keyOutside;
}
public void setKeyOutside(final boolean keyOutside) {
this.keyOutside = keyOutside;
}
public boolean isRenderLabels() {
return renderLabels;
}
public void setRenderLabels(final boolean renderLabels) {
this.renderLabels = renderLabels;
}
}