Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java @ 1712:7e19449d7826
#253 Modified the title creation of chart curves - titles will now equal the Facet's description.
flys-artifacts/trunk@2984 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 10:47:36 +0000 |
parents | e99b4bd32cd5 |
children | ffab6de07dc5 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java Mon Oct 17 08:45:26 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/WDifferencesCurveGenerator.java Mon Oct 17 10:47:36 2011 +0000 @@ -138,12 +138,12 @@ if (name.equals(W_DIFFERENCES)) { doWDifferencesOut( (WKms) f.getData(artifact, context), - f.getDescription(), + facet, attr, visible); } else if (name.equals(LONGITUDINAL_W)) { - doWOut((WQKms) f.getData(artifact, context), attr, visible); + doWOut((WQKms) f.getData(artifact, context), facet, attr, visible); } else { logger.warn("Unknown facet name: " + name); @@ -160,10 +160,15 @@ * @param theme The theme that contains styling information. */ @Override - protected void doWOut(WQKms wqkms, Document theme, boolean visible) { + protected void doWOut( + WQKms wqkms, + Facet facet, + Document theme, + boolean visible + ) { logger.debug("WDifferencesCurveGenerator.doWOut"); - XYSeries series = new StyledXYSeries(getSeriesName(wqkms, "W"), theme); + XYSeries series = new StyledXYSeries(facet.getDescription(), theme); int size = wqkms.size(); @@ -187,7 +192,7 @@ */ protected void doWDifferencesOut( WKms wkms, - String seriesName, + Facet facet, Document theme, boolean visible ) { @@ -198,7 +203,7 @@ } int size = wkms.size(); - XYSeries series = new StyledXYSeries(seriesName, theme); + XYSeries series = new StyledXYSeries(facet.getDescription(), theme); if (logger.isDebugEnabled()) { if (wkms.size() > 0) {