Mercurial > dive4elements > river
changeset 4440:3e6ed1285ab9
Remove whitespace added by eclipse
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Tue, 06 Nov 2012 15:57:36 +0100 |
parents | 8f131a870c6f |
children | 093f9333f66b |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/AbstractFixGenerator.java |
diffstat | 1 files changed, 22 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/AbstractFixGenerator.java Tue Nov 06 15:57:02 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/AbstractFixGenerator.java Tue Nov 06 15:57:36 2012 +0100 @@ -25,19 +25,19 @@ @SuppressWarnings("unchecked") protected void doSectorAverageOut(ArtifactAndFacet aaf, Document doc, boolean visible, int idx) { logger.debug("doSectorAverageOut" + aaf.getFacet().getIndex()); - + int index = aaf.getFacet().getIndex(); int sectorNdx = index & 3; - + KMIndex<AnalysisPeriod> kms = (KMIndex<AnalysisPeriod>)aaf.getData(context); - + if(kms == null) { return; } - + XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), doc); - + for (KMIndex.Entry<AnalysisPeriod> entry: kms) { double km = entry.getKm(); AnalysisPeriod ap = entry.getValue(); @@ -48,61 +48,60 @@ double deltaW = qwd.getDeltaW(); series.add(km, deltaW); } - + addAxisSeries(series, idx, visible); - + } @SuppressWarnings("unchecked") protected void doAnalysisEventsOut(ArtifactAndFacet aaf, Document doc, boolean visible, int idx) { logger.debug("doAnalysisEventsOut"); - + KMIndex<QWD> kms = (KMIndex<QWD>)aaf.getData(context); - + if(kms == null) { return; } - + XYSeriesCollection col = new XYSeriesCollection(); - + StyledXYSeries series = new StyledXYSeries(aaf.getFacetDescription(), false, doc); - + for (KMIndex.Entry<QWD> entry: kms) { double km = entry.getKm(); QWD qwd = entry.getValue(); - + series.add(km, qwd.getDeltaW()); } col.addSeries(series); - + addAxisDataset(col, idx, visible); } @SuppressWarnings("unchecked") protected void doReferenceEventsOut(ArtifactAndFacet aaf, Document doc, boolean visible, int idx) { logger.debug("doReferenceEventOut"); - + KMIndex<QWD> kms = (KMIndex<QWD>)aaf.getData(context); - + if(kms == null) { return; } - + XYSeriesCollection col = new XYSeriesCollection(); - + StyledXYSeries series = new StyledXYSeries(aaf.getFacetDescription(), false, doc); - + for (KMIndex.Entry<QWD> entry: kms) { double km = entry.getKm(); QWD qwd = entry.getValue(); - + series.add(km, qwd.getDeltaW()); } col.addSeries(series); - + addAxisDataset(col, idx, visible); } - -} \ No newline at end of file +}