changeset 7106:ed8623b989f3 generator-refactoring

Minor cleanup / doc
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 24 Sep 2013 11:26:45 +0200
parents ab57b6eee71c
children 564033adf9c6
files artifacts/src/main/java/org/dive4elements/river/exports/CrossSectionGenerator.java artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/CrossSectionGenerator.java	Mon Sep 23 16:41:12 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/CrossSectionGenerator.java	Tue Sep 24 11:26:45 2013 +0200
@@ -70,7 +70,6 @@
 
     /** Trivial Constructor. */
     public CrossSectionGenerator() {
-        super();
     }
 
 
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java	Mon Sep 23 16:41:12 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java	Tue Sep 24 11:26:45 2013 +0200
@@ -190,7 +190,7 @@
      * Return left most data points x value (on first axis).
      */
     protected double getLeftX() {
-        if (isInverted()) {
+        if (inverted) {
             return (Double)getXBounds(0).getUpper();
         }
         return (Double)getXBounds(0).getLower();
@@ -201,7 +201,7 @@
      * Return right most data points x value (on first axis).
      */
     protected double getRightX() {
-        if (isInverted()) {
+        if (inverted) {
             return (Double)getXBounds(0).getLower();
         }
         return (Double)getXBounds(0).getUpper();
@@ -835,7 +835,7 @@
 
     /**
      * Adjusts the axes of a plot. This method sets the <i>labelFont</i> of the
-     * X axis and applies the inversion if isInverted.
+     * X axis and applies the inversion if inverted is true.
      *
      * (Duplicate in TimeseriesChartGenerator)
      *
@@ -962,7 +962,8 @@
     }
 
 
-    /** Set to true if x axis has been inverted. */
+    /** Set to true if x axis should be inverted.
+     * This can not be set to false afterwards. */
     public void setInverted(boolean inverted) {
         this.inverted = inverted;
     }

http://dive4elements.wald.intevation.org