comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 1861:11c4b1429117

Cosmetics, resolve code duplicate. flys-artifacts/trunk@3210 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 10 Nov 2011 10:18:31 +0000
parents 5d5dd44d613e
children de0c2bbb27f9
comparison
equal deleted inserted replaced
1860:ddd425858169 1861:11c4b1429117
645 return new XYLineAndShapeRenderer(); 645 return new XYLineAndShapeRenderer();
646 } 646 }
647 647
648 648
649 /** 649 /**
650 * Store themed annotations like MainValues for later plotting. 650 * Register annotations like MainValues for later plotting
651 *
652 * @param o list of annotations (data of facet).
653 * @param facet The facet. This facet does NOT support any data objects. Use
654 * FLYSArtifact.getNativeFacet() instead to retrieve a Facet which supports
655 * data.
656 * @param theme Theme document for given annotations.
657 * @param visible The visibility of the annotations.
651 */ 658 */
652 protected void doAnnotations( 659 protected void doAnnotations(
653 FLYSAnnotation annotations, 660 FLYSAnnotation annotations,
654 Facet facet, 661 Facet facet,
655 Document theme, 662 Document theme,
656 boolean visible 663 boolean visible
657 ){ 664 ){
658 logger.debug("doAnnotations"); 665 logger.debug("doAnnotations");
659 666
667 // Add all annotations to our annotation pool.
660 annotations.setTheme(theme); 668 annotations.setTheme(theme);
661 annotations.setLabel(facet.getDescription()); 669 annotations.setLabel(facet.getDescription());
662 addAnnotations(annotations, visible); 670 addAnnotations(annotations, visible);
663 } 671 }
664 } 672 }

http://dive4elements.wald.intevation.org