changeset 7213:c453f7ecf479

FlowVelocityGenerator: Simplify code a bit, master and its river is exposed already.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 30 Sep 2013 17:40:04 +0200
parents 8079e3ba31c9
children 8817bb81cf27
files artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.java	Mon Sep 30 17:38:11 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.java	Mon Sep 30 17:40:04 2013 +0200
@@ -32,7 +32,6 @@
 import org.dive4elements.river.jfree.StyledXYSeries;
 
 import org.dive4elements.river.themes.ThemeDocument;
-import org.dive4elements.river.utils.RiverUtils;
 
 
 /**
@@ -141,12 +140,10 @@
      */
     @Override
     protected String getDefaultXAxisLabel() {
-        D4EArtifact flys = (D4EArtifact) master;
-
         return msg(
             I18N_XAXIS_LABEL,
             I18N_XAXIS_LABEL_DEFAULT,
-            new Object[] { RiverUtils.getRiver(flys).getName() });
+            new Object[] { getRiverName() });
     }
 
 

http://dive4elements.wald.intevation.org