package pl.edu.icm.saos.webapp.analysis.result; /** * Codes for different charts that are shown on the analysis page. They are used for a proper visual representation of different chart data. * * @author Ɓukasz Dumiszewski */ public enum ChartCode { /** Main chart with judgment date period on x axis */ MAIN_CHART(true), /** Chart with MAIN_CHART series data aggregated */ AGGREGATED_MAIN_CHART(false), /** Chart with common courts on x-axis */ CC_COURT_CHART(true); private boolean chartGenerated; //------------------------ CONSTRUCTORS -------------------------- private ChartCode(boolean chartGenerated) { this.chartGenerated = chartGenerated; } //------------------------ LOGIC -------------------------- /** * Is a chart with the given code generated by analysis module. If false it can mean * that the chart is created from the data of some other chart. */ public boolean isChartGenerated() { return chartGenerated; } }