comparison 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
comparison
equal deleted inserted replaced
830:3ab5754e72e3 831:bcdcce146c14
47 private static Logger log = Logger.getLogger(VerticalProfileChart.class); 47 private static Logger log = Logger.getLogger(VerticalProfileChart.class);
48 48
49 /** 49 /**
50 * Constant used for gap detection. Its value is {@value}. 50 * Constant used for gap detection. Its value is {@value}.
51 */ 51 */
52 protected final double PERCENTAGE = 5.0; 52 protected static int PERCENTAGE = 5;
53 53
54 /** 54 /**
55 * Constnat used for gap detection in @see #gridDetection. 55 * Constnat used for gap detection in @see #gridDetection.
56 */ 56 */
57 protected final double GAP_MAX_LEVEL = Math.sqrt(2.0); 57 protected final double GAP_MAX_LEVEL = Math.sqrt(2.0);
65 * Map to store max ranges of each parameter 65 * Map to store max ranges of each parameter
66 * (org.jfree.chart.axis.Axis.setAutoRange(true) doesn't seem to work 66 * (org.jfree.chart.axis.Axis.setAutoRange(true) doesn't seem to work
67 * properly. 67 * properly.
68 */ 68 */
69 protected Map values; 69 protected Map values;
70
71 static {
72 /* The percentage defining the width of a gap should be configured in
73 * conf.xml instead of being configured in a system property */
74 PERCENTAGE = Integer.getInteger("chart.gap.percentage", PERCENTAGE);
75 }
70 76
71 77
72 /** 78 /**
73 * Constructor used to create xy-charts. 79 * Constructor used to create xy-charts.
74 * 80 *

http://dive4elements.wald.intevation.org