changeset 6441:216ea53b77b3

ComputedDischargeCurveGenerator: Renamed function.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 26 Jun 2013 15:09:33 +0200
parents 004b87755fa4
children f3078357ec65
files artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org