[Dive4elements-commits] [PATCH 1 of 2] ComputedDischargeCurveGenerator: Renamed function

Wald Commits scm-commit at wald.intevation.org
Wed Jun 26 16:28:04 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1372252173 -7200
# Node ID 216ea53b77b3e4484f8a7d641c3f2fda4071e4c0
# Parent  004b87755fa44d52d2e0075f1aacd0c7c71837a7
ComputedDischargeCurveGenerator: Renamed function.

diff -r 004b87755fa4 -r 216ea53b77b3 artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java	Wed Jun 26 15:28:46 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java	Wed Jun 26 15:09:33 2013 +0200
@@ -95,7 +95,7 @@
     /**
      * Returns the PNP (Datum) of gauge, if at gauge, 0 otherwise.
      */
-    protected int atGaugeSubtractPNP() {
+    protected int getCurrentGaugeDatum() {
         // Code borrowed from FixATWriter.
         Gauge gauge = RiverUtils.getGauge((D4EArtifact) getMaster());
         int subtractPNP = 0;
@@ -140,7 +140,7 @@
         axis.setAutoRangeIncludesZero(false);
         axis.setLabelFont(labelFont);
         axis.setTickLabelFont(labelFont);
-        axis.setShift((double)-atGaugeSubtractPNP());
+        axis.setShift((double)-getCurrentGaugeDatum());
 
         return axis;
     }
@@ -255,7 +255,7 @@
         logger.debug("ComputedDischargeCurveGenerator: doDischargeQOut");
         XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme);
 
-        int subtractPNP = atGaugeSubtractPNP();
+        int subtractPNP = getCurrentGaugeDatum();
 
         if (subtractPNP == 0) {
             StyledSeriesBuilder.addPointsQW(series, wqkms);


More information about the Dive4elements-commits mailing list