[PATCH 6 of 9] Removed unused imports and avoid using RiverUtils
Wald Commits
scm-commit at wald.intevation.org
Thu Jul 3 12:31:34 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1404380070 -7200
# Branch facet-metadata
# Node ID 4366ec0d8f8f04ad1769e012c1ee5edacffc7029
# Parent 5277483044d934298616a8d302afc9af7335d3a3
Removed unused imports and avoid using RiverUtils.
diff -r 5277483044d9 -r 4366ec0d8f8f artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java Thu Jul 03 11:33:41 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java Thu Jul 03 11:34:30 2014 +0200
@@ -8,7 +8,6 @@
package org.dive4elements.river.exports.process;
-import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
@@ -17,16 +16,13 @@
import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
import org.dive4elements.artifacts.CallContext;
import org.dive4elements.river.artifacts.D4EArtifact;
-import org.dive4elements.river.artifacts.model.minfo.BedHeightSingleData;
-import org.dive4elements.river.artifacts.model.minfo.BedDiffYearResult;
+import org.dive4elements.river.artifacts.access.RiverAccess;
import org.dive4elements.river.artifacts.model.FacetTypes;
import org.dive4elements.river.exports.XYChartGenerator;
import org.dive4elements.river.exports.DiagramGenerator;
import org.dive4elements.river.exports.StyledSeriesBuilder;
import org.dive4elements.river.jfree.StyledXYSeries;
-import org.dive4elements.river.model.BedHeightSingleValue;
import org.dive4elements.river.themes.ThemeDocument;
-import org.dive4elements.river.utils.RiverUtils;
public class BedHeightProcessor extends DefaultProcessor {
@@ -113,7 +109,8 @@
public String getAxisLabel(DiagramGenerator generator) {
D4EArtifact flys = (D4EArtifact) generator.getMaster();
- String unit = RiverUtils.getRiver(flys).getWstUnit().getName();
+ RiverAccess access = new RiverAccess(flys);
+ String unit = access.getRiver().getWstUnit().getName();
if (yAxisLabel != null && !yAxisLabel.isEmpty()) {
return generator.msg(
diff -r 5277483044d9 -r 4366ec0d8f8f artifacts/src/main/java/org/dive4elements/river/exports/process/MiddleBedHeightProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/MiddleBedHeightProcessor.java Thu Jul 03 11:33:41 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/MiddleBedHeightProcessor.java Thu Jul 03 11:34:30 2014 +0200
@@ -12,18 +12,15 @@
import org.apache.log4j.Logger;
-import org.jfree.data.xy.XYSeries;
-
import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
import org.dive4elements.artifacts.CallContext;
import org.dive4elements.river.artifacts.D4EArtifact;
+import org.dive4elements.river.artifacts.access.RiverAccess;
import org.dive4elements.river.artifacts.model.FacetTypes;
-import org.dive4elements.river.artifacts.model.minfo.MiddleBedHeightData;
import org.dive4elements.river.themes.ThemeDocument;
import org.dive4elements.river.exports.DiagramGenerator;
import org.dive4elements.river.exports.StyledSeriesBuilder;
-import org.dive4elements.river.utils.RiverUtils;
import org.dive4elements.river.jfree.StyledXYSeries;
public class MiddleBedHeightProcessor extends DefaultProcessor {
@@ -74,7 +71,8 @@
public String getAxisLabel(DiagramGenerator generator) {
D4EArtifact flys = (D4EArtifact) generator.getMaster();
- String unit = RiverUtils.getRiver(flys).getWstUnit().getName();
+ RiverAccess access = new RiverAccess(flys);
+ String unit = access.getRiver().getWstUnit().getName();
if (yAxisLabel != null && !yAxisLabel.isEmpty()) {
return generator.msg(
More information about the Dive4Elements-commits
mailing list