package org.molgenis.charts; /** * Base class for the different Chart types */ public abstract class AbstractChart { public enum MolgenisChartType { LINE_CHART, SCATTER_CHART, BOXPLOT_CHART, HEAT_MAP } public static final int DEFAULT_WITH = 800; public static final int DEFAULT_HEIGHT = 450; private MolgenisChartType type; private int width = DEFAULT_WITH; private int height = DEFAULT_HEIGHT; private String title = ""; private String xLabel = ""; private String yLabel = ""; protected AbstractChart() { } public String getTitle() { return title; } public void setTitle(String title) { this.title = (title == null) ? "" : title; } public String getxLabel() { return xLabel; } public void setxLabel(String xLabel) { this.xLabel = xLabel; } public String getyLabel() { return yLabel; } public void setyLabel(String yLabel) { this.yLabel = yLabel; } public MolgenisChartType getType() { return type; } public void setType(MolgenisChartType type) { this.type = type; } public int getWidth() { return width; } public void setWidth(int width) { this.width = width; } public int getHeight() { return height; } public void setHeight(int height) { this.height = height; } }