Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 2053:f9a972d375ba
Use the user defined font size to set Y axes label fonts sizes.
flys-artifacts/trunk@3543 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Dec 2011 08:22:07 +0000 |
parents | 4ba5036109d2 |
children | ca8997aa683e |
comparison
equal
deleted
inserted
replaced
2052:c7f18fa0d685 | 2053:f9a972d375ba |
---|---|
230 * Create Axis for given index. | 230 * Create Axis for given index. |
231 * @return axis with according internationalized label. | 231 * @return axis with according internationalized label. |
232 */ | 232 */ |
233 @Override | 233 @Override |
234 protected NumberAxis createYAxis(int index) { | 234 protected NumberAxis createYAxis(int index) { |
235 Font labelFont = new Font("Tahoma", Font.BOLD, 14); | 235 NumberAxis axis = super.createYAxis(index); |
236 String label = getYAxisLabel(index); | 236 |
237 | |
238 NumberAxis axis = createNumberAxis(index, label); | |
239 // "Q" Axis shall include 0. | 237 // "Q" Axis shall include 0. |
240 if (index == YAXIS.Q.idx) { | 238 if (index == YAXIS.Q.idx) { |
241 axis.setAutoRangeIncludesZero(true); | 239 axis.setAutoRangeIncludesZero(true); |
242 } | 240 } |
243 else { | 241 else { |
244 axis.setAutoRangeIncludesZero(false); | 242 axis.setAutoRangeIncludesZero(false); |
245 } | 243 } |
246 axis.setLabelFont(labelFont); | 244 |
247 return axis; | 245 return axis; |
248 } | 246 } |
249 | 247 |
250 | 248 |
251 /** | 249 /** |