Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2152:2336927cb096
Add basic (text) styling for HYKS.
flys-artifacts/trunk@3734 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 20 Jan 2012 08:38:50 +0000 |
parents | c5d24e0587ce |
children | e0add4b2d4bc |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Fri Jan 20 08:35:03 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Fri Jan 20 08:38:50 2012 +0000 @@ -201,10 +201,10 @@ * @param theme Theme for the data series. */ protected void doCrossSectionWaterLineOut( - Object o, - String seriesName, - Document theme, - boolean visible + Object o, + String seriesName, + Document theme, + boolean visible ) { logger.debug("CrossSectionGenerator.doCrossSectionWaterLineOut"); @@ -219,22 +219,21 @@ /** Add HYK-Annotations (colorize and label some areas, draw lines. */ protected void doHyk( - Object o, - String seriesName, - Document theme, - boolean visible + Object o, + String seriesName, + Document theme, + boolean visible ) { logger.debug("CrossSectionGenerator.doHyk"); - // TODO there is some style information for the text at least. - List<HYKFactory.Zone> zones = (List<HYKFactory.Zone>) o; if (zones.size() == 0) { logger.debug("CrossSectionGenerator.doHYK: empty zone list received."); } - addAnnotations(new FLYSAnnotation("HYK Zones", null, zones), visible); + // Actual Styling is done in XYChartGenerator. + addAnnotations(new FLYSAnnotation(seriesName, null, zones, theme), visible); } @@ -245,10 +244,10 @@ * @param theme Theme for the data series. */ protected void doCrossSectionOut( - Object o, - String seriesName, - Document theme, - boolean visible + Object o, + String seriesName, + Document theme, + boolean visible ) { logger.debug("CrossSectionGenerator.doCrossSectionOut");