[PATCH 1 of 9] Minor cleanup / doc
Wald Commits
scm-commit at wald.intevation.org
Tue Sep 24 11:43:58 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1380014805 -7200
# Branch generator-refactoring
# Node ID ed8623b989f38c117fca70f38cfb7a4e881267b9
# Parent ab57b6eee71c95e3f787b5a0ce8708c75a0801f2
Minor cleanup / doc
diff -r ab57b6eee71c -r ed8623b989f3 artifacts/src/main/java/org/dive4elements/river/exports/CrossSectionGenerator.java
--- 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();
}
diff -r ab57b6eee71c -r ed8623b989f3 artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java
--- 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;
}
More information about the Dive4elements-commits
mailing list