comparison artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator2.java @ 7107:564033adf9c6 generator-refactoring

Handle axis include zero setting for the new processing architecture
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 24 Sep 2013 11:27:28 +0200
parents ab57b6eee71c
children 4605d6ca4ee9
comparison
equal deleted inserted replaced
7106:ed8623b989f3 7107:564033adf9c6
36 args = new Object[] {getRiverName(), dist[1]}; 36 args = new Object[] {getRiverName(), dist[1]};
37 return msg(I18N_CHART_LOCATION_SUBTITLE, "", args); 37 return msg(I18N_CHART_LOCATION_SUBTITLE, "", args);
38 } 38 }
39 return super.getDefaultChartSubtitle(); 39 return super.getDefaultChartSubtitle();
40 } 40 }
41
42 /**
43 * Create Axis for given index.
44 * @return axis with according internationalized label.
45 */
46 @Override
47 protected NumberAxis createYAxis(int index) {
48 // TODO decide what to do with this.
49 return super.createYAxis(index);
50 /*
51 NumberAxis axis = super.createYAxis(index);
52
53 // "Q" Axis shall include 0.
54 if (index == YAXIS.Q.idx) {
55 axis.setAutoRangeIncludesZero(true);
56 }
57 else {
58 axis.setAutoRangeIncludesZero(false);
59 }
60
61 return axis;*/
62 }
63 } 41 }
64 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 42 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org