Mercurial > dive4elements > river
changeset 2143:c5d24e0587ce
Minor hyk-handling improvements.
flys-artifacts/trunk@3721 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 19 Jan 2012 13:09:00 +0000 |
parents | ef337d9fa5ea |
children | a4bdf7d8527e |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Thu Jan 19 13:01:55 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Thu Jan 19 13:09:00 2012 +0000 @@ -234,9 +234,7 @@ logger.debug("CrossSectionGenerator.doHYK: empty zone list received."); } - //TODO handle visible - - addAnnotations(new FLYSAnnotation("HYK Zones", null, zones), true); + addAnnotations(new FLYSAnnotation("HYK Zones", null, zones), visible); }
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Thu Jan 19 13:01:55 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Thu Jan 19 13:09:00 2012 +0000 @@ -1085,13 +1085,18 @@ public void addBoxAnnotations(XYPlot plot) { logger.debug("XYChartGenerator.addBoxAnnotations"); + if (annotations == null) { + logger.debug("XYChartGenerator.addBoxAnnotations: no annotations."); + return; + } + Stroke basicStroke = new BasicStroke(1.0f); Paint linePaint = new Color(255,0,0,60); Paint fillPaint = new Color(0,255,0,60); Paint tranPaint = new Color(0,0,0,0); - double fillPercent = 0.05; + double fillPercent = 0.03; double low = getLowestYValue(plot); double up = getUppestYValue(plot); double upb = low + (up - low) * fillPercent;