Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java @ 831:bcdcce146c14
Read a system property to adjust the percentage that defines the size of a gap in charts (issue175).
gnv-artifacts/trunk@930 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 15 Apr 2010 07:20:05 +0000 |
parents | 22c18083225e |
children | 2423cefe7d39 |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java Tue Apr 13 14:35:30 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java Thu Apr 15 07:20:05 2010 +0000 @@ -49,7 +49,7 @@ /** * Constant used for gap detection. Its value is {@value}. */ - protected final double PERCENTAGE = 5.0; + protected static int PERCENTAGE = 5; /** * Constnat used for gap detection in @see #gridDetection. @@ -68,6 +68,12 @@ */ protected Map values; + static { + /* The percentage defining the width of a gap should be configured in + * conf.xml instead of being configured in a system property */ + PERCENTAGE = Integer.getInteger("chart.gap.percentage", PERCENTAGE); + } + /** * Constructor used to create xy-charts.