comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/TimeSeriesChart.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 e8a9e84a0328
children 2423cefe7d39
comparison
equal deleted inserted replaced
830:3ab5754e72e3 831:bcdcce146c14
63 public static final long NO_TIME_GAP = Long.MAX_VALUE - 1000; 63 public static final long NO_TIME_GAP = Long.MAX_VALUE - 1000;
64 64
65 /** 65 /**
66 * Percentage used for gap detection. Its value is {@value}. 66 * Percentage used for gap detection. Its value is {@value}.
67 */ 67 */
68 public static final int GAP_SIZE = 5; // in percent 68 public static int GAP_SIZE = 5; // in percent
69 69
70 /** 70 /**
71 * Logger used for logging with log4j. 71 * Logger used for logging with log4j.
72 */ 72 */
73 private static Logger log = Logger.getLogger(TimeSeriesChart.class); 73 private static Logger log = Logger.getLogger(TimeSeriesChart.class);
74
75 static {
76 /* The percentage defining the width of a gap should be configured in
77 * conf.xml instead of being configured in a system property */
78 GAP_SIZE = Integer.getInteger("chart.gap.percentage", GAP_SIZE);
79 }
74 80
75 81
76 /** 82 /**
77 * Constructor used to create <code>TimeSeries</code> charts. 83 * Constructor used to create <code>TimeSeries</code> charts.
78 * 84 *

http://dive4elements.wald.intevation.org