Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.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 |
---|---|
84 @Override | 84 @Override |
85 protected NumberAxis createYAxis(int index) { | 85 protected NumberAxis createYAxis(int index) { |
86 Font labelFont = new Font("Tahoma", Font.BOLD, 14); | 86 Font labelFont = new Font("Tahoma", Font.BOLD, 14); |
87 String label = getYAxisLabel(index); | 87 String label = getYAxisLabel(index); |
88 | 88 |
89 NumberAxis axis = new NumberAxis(label); | 89 NumberAxis axis = createNumberAxis(index, label); |
90 if (index == YAXIS.W.idx) { | 90 if (index == YAXIS.W.idx) { |
91 axis.setAutoRangeIncludesZero(false); | 91 axis.setAutoRangeIncludesZero(false); |
92 } | 92 } |
93 axis.setLabelFont(labelFont); | 93 axis.setLabelFont(labelFont); |
94 return axis; | 94 return axis; |