# HG changeset patch # User Felix Wolfsteller # Date 1380555604 -7200 # Node ID c453f7ecf479006a56788e97c62361b1a9678631 # Parent 8079e3ba31c99596ec074d0b911341050d2df550 FlowVelocityGenerator: Simplify code a bit, master and its river is exposed already. diff -r 8079e3ba31c9 -r c453f7ecf479 artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.java --- 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() }); }