Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java @ 783:3509735619e7
Added an offset of 15px between the right data area and the right axis (issue192).
gnv-artifacts/trunk@865 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 12:56:13 +0000 |
parents | b1f5f2a8840f |
children | e8a9e84a0328 |
comparison
equal
deleted
inserted
replaced
782:725f7573b6ea | 783:3509735619e7 |
---|---|
35 import org.jfree.data.Range; | 35 import org.jfree.data.Range; |
36 | 36 |
37 import org.jfree.data.general.Series; | 37 import org.jfree.data.general.Series; |
38 | 38 |
39 import org.jfree.data.xy.XYDataset; | 39 import org.jfree.data.xy.XYDataset; |
40 | |
41 import org.jfree.ui.RectangleInsets; | |
40 | 42 |
41 /** | 43 /** |
42 * This abstract class defines some methods to adjust chart settings after its | 44 * This abstract class defines some methods to adjust chart settings after its |
43 * creation. | 45 * creation. |
44 * | 46 * |
288 * @param plot JFreeChart Plot object to be adjusted. | 290 * @param plot JFreeChart Plot object to be adjusted. |
289 */ | 291 */ |
290 protected void adjustPlot(XYPlot plot) { | 292 protected void adjustPlot(XYPlot plot) { |
291 if (plot.getRangeAxisCount() > 1) | 293 if (plot.getRangeAxisCount() > 1) |
292 plot.setRangeGridlinesVisible(false); | 294 plot.setRangeGridlinesVisible(false); |
295 | |
296 plot.setAxisOffset(new RectangleInsets(0, 0, 0, 15)); | |
293 } | 297 } |
294 | 298 |
295 | 299 |
296 /** | 300 /** |
297 * Abstract method which is called after chart creation. It turns an | 301 * Abstract method which is called after chart creation. It turns an |