comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 2049:2d5f2bc68cc6

Centralized the creation of new NumberAxis - new NumberAxis instances in FLYS will be from type IdentifiableNumberAxis which subclasses JFreeChart's NumberAxis. flys-artifacts/trunk@3539 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 23 Dec 2011 15:10:13 +0000
parents 3157a78e6494
children 4ba5036109d2
comparison
equal deleted inserted replaced
2048:3157a78e6494 2049:2d5f2bc68cc6
219 @Override 219 @Override
220 protected NumberAxis createYAxis(int index) { 220 protected NumberAxis createYAxis(int index) {
221 Font labelFont = new Font("Tahoma", Font.BOLD, 14); 221 Font labelFont = new Font("Tahoma", Font.BOLD, 14);
222 String label = getYAxisLabel(index); 222 String label = getYAxisLabel(index);
223 223
224 NumberAxis axis = new NumberAxis(label); 224 NumberAxis axis = createNumberAxis(index, label);
225 // "Q" Axis shall include 0. 225 // "Q" Axis shall include 0.
226 if (index == YAXIS.Q.idx) { 226 if (index == YAXIS.Q.idx) {
227 axis.setAutoRangeIncludesZero(true); 227 axis.setAutoRangeIncludesZero(true);
228 } 228 }
229 else { 229 else {

http://dive4elements.wald.intevation.org