comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeCurveGenerator.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
136 Font labelFont = new Font("Tahoma", Font.BOLD, 14); 136 Font labelFont = new Font("Tahoma", Font.BOLD, 14);
137 String label = "default"; 137 String label = "default";
138 if (index == YAXIS.W.idx) { 138 if (index == YAXIS.W.idx) {
139 label = getYAxisLabel(); 139 label = getYAxisLabel();
140 } 140 }
141 NumberAxis axis = new NumberAxis(label); 141 NumberAxis axis = createNumberAxis(index, label);
142 axis.setLabelFont(labelFont); 142 axis.setLabelFont(labelFont);
143 axis.setAutoRangeIncludesZero(false); 143 axis.setAutoRangeIncludesZero(false);
144 return axis; 144 return axis;
145 } 145 }
146 146

http://dive4elements.wald.intevation.org