Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 1711:f708120cb7bc
Fix flys/issue363 (W-INFO/ Abflusskurve, Extremwert-Rendering).
flys-artifacts/trunk@2975 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 08:45:26 +0000 |
parents | 608859aa5a7e |
children | 5966a20fc72c |
comparison
equal
deleted
inserted
replaced
1710:055f32a5388a | 1711:f708120cb7bc |
---|---|
236 | 236 |
237 yRanges.put(key, newY); | 237 yRanges.put(key, newY); |
238 } | 238 } |
239 | 239 |
240 | 240 |
241 /** | |
242 * Adds annotations to list (if visible is true). | |
243 */ | |
241 public void addAnnotations(FLYSAnnotation annotation, boolean visible) { | 244 public void addAnnotations(FLYSAnnotation annotation, boolean visible) { |
242 if (!visible) { | 245 if (!visible) { |
243 return; | 246 return; |
244 } | 247 } |
245 | 248 |
412 | 415 |
413 if (color == null) { | 416 if (color == null) { |
414 color = Color.black; | 417 color = Color.black; |
415 } | 418 } |
416 | 419 |
420 int lineWidth = theme != null | |
421 ? ThemeUtil.parseLineWidth(theme) | |
422 : 1; | |
423 | |
417 lic.add(new LegendItem(fa.getLabel(), color)); | 424 lic.add(new LegendItem(fa.getLabel(), color)); |
418 | 425 |
419 for (XYTextAnnotation ta: fa.getAnnotations()) { | 426 for (XYTextAnnotation ta: fa.getAnnotations()) { |
420 ta.setPaint(color); | 427 ta.setPaint(color); |
428 ta.setOutlineStroke(new BasicStroke((float) lineWidth)); | |
421 renderer.addAnnotation(ta); | 429 renderer.addAnnotation(ta); |
422 } | 430 } |
423 | 431 |
424 plot.setFixedLegendItems(lic); | 432 plot.setFixedLegendItems(lic); |
425 } | 433 } |