Mercurial > dive4elements > gnv-client
changeset 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 | 725f7573b6ea |
children | 7b81d563c8c0 |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Mon Mar 29 10:28:32 2010 +0000 +++ b/gnv-artifacts/ChangeLog Mon Mar 29 12:56:13 2010 +0000 @@ -1,3 +1,11 @@ +2010-03-29 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + Issue192 + + * src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java: Added an + offset of 15px between the right data area and the right axis. Long axes + labels near the right border aren't cut on this way. + 2010-03-29 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/gnv/**/package.html: New
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java Mon Mar 29 10:28:32 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java Mon Mar 29 12:56:13 2010 +0000 @@ -38,6 +38,8 @@ import org.jfree.data.xy.XYDataset; +import org.jfree.ui.RectangleInsets; + /** * This abstract class defines some methods to adjust chart settings after its * creation. @@ -290,6 +292,8 @@ protected void adjustPlot(XYPlot plot) { if (plot.getRangeAxisCount() > 1) plot.setRangeGridlinesVisible(false); + + plot.setAxisOffset(new RectangleInsets(0, 0, 0, 15)); }