comparison artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java @ 9311:7c7f73e5e01e

Moved chart metadata line to top of chart. Minor cleanup.
author gernotbelger
date Thu, 26 Jul 2018 11:16:06 +0200
parents 1cc7653ca84f
children d8e753d0fdb9
comparison
equal deleted inserted replaced
9310:819dbd073624 9311:7c7f73e5e01e
104 @Override 104 @Override
105 protected JFreeChart generateChart(CallContext context) { 105 protected JFreeChart generateChart(CallContext context) {
106 log.debug("XYChartGenerator.generateChart"); 106 log.debug("XYChartGenerator.generateChart");
107 107
108 JFreeChart chart = ChartFactory.createXYLineChart( 108 JFreeChart chart = ChartFactory.createXYLineChart(
109 getChartTitle(context), 109 null,
110 getXAxisLabel(), 110 getXAxisLabel(),
111 getYAxisLabel(0), 111 getYAxisLabel(0),
112 null, 112 null,
113 PlotOrientation.VERTICAL, 113 PlotOrientation.VERTICAL,
114 isLegendVisible(), 114 isLegendVisible(),
115 false, 115 false,
116 false); 116 false);
117 117
118 generateTitles(chart);
119
118 XYPlot plot = (XYPlot) chart.getPlot(); 120 XYPlot plot = (XYPlot) chart.getPlot();
119 ValueAxis axis = createXAxis(getXAxisLabel()); 121 ValueAxis axis = createXAxis(getXAxisLabel());
120 plot.setDomainAxis(axis); 122 plot.setDomainAxis(axis);
121 123
122 chart.setBackgroundPaint(Color.WHITE); 124 chart.setBackgroundPaint(Color.WHITE);
123 plot.setBackgroundPaint(Color.WHITE); 125 plot.setBackgroundPaint(Color.WHITE);
124 addSubtitles(context, chart);
125 addMetadataSubtitle(context, chart);
126 adjustPlot(plot); 126 adjustPlot(plot);
127 127
128 //debugAxis(plot); 128 //debugAxis(plot);
129 129
130 addDatasets(plot); 130 addDatasets(plot);

http://dive4elements.wald.intevation.org