prepare to have more flexibility when for plots
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user