Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2772:5e8e42a36a90
Minor refactoring.
flys-artifacts/trunk@4511 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 25 May 2012 07:49:11 +0000 |
parents | 1cb072d0978d |
children | 5016609663e2 |
comparison
equal
deleted
inserted
replaced
2771:e22469664c20 | 2772:5e8e42a36a90 |
---|---|
411 | 411 |
412 | 412 |
413 /** | 413 /** |
414 * Adds annotations to list (if visible is true). | 414 * Adds annotations to list (if visible is true). |
415 */ | 415 */ |
416 public void addAnnotations(FLYSAnnotation annotation, boolean visible) { | 416 public void addVisibleAnnotations(FLYSAnnotation annotation) { |
417 if (!visible) { | |
418 return; | |
419 } | |
420 | |
421 if (annotations == null) { | 417 if (annotations == null) { |
422 annotations = new ArrayList<FLYSAnnotation>(); | 418 annotations = new ArrayList<FLYSAnnotation>(); |
423 } | 419 } |
424 | 420 |
425 annotations.add(annotation); | 421 annotations.add(annotation); |
1022 logger.debug( | 1018 logger.debug( |
1023 "Art/Facet for Annotations is null. " + | 1019 "Art/Facet for Annotations is null. " + |
1024 "This should never happen!"); | 1020 "This should never happen!"); |
1025 } | 1021 } |
1026 | 1022 |
1027 addAnnotations(annotations, visible); | 1023 if (visible) { |
1024 addVisibleAnnotations(annotations); | |
1025 } | |
1028 } | 1026 } |
1029 | 1027 |
1030 | 1028 |
1031 /** | 1029 /** |
1032 * Do Points out. | 1030 * Do Points out. |