Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/jfree/DoubleBounds.java @ 8338:ac7cb15e1946
Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Fri, 26 Sep 2014 18:23:45 +0200 |
parents | af13ceeba52a |
children | e5f688820951 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/DoubleBounds.java Fri Sep 26 17:22:51 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/jfree/DoubleBounds.java Fri Sep 26 18:23:45 2014 +0200 @@ -32,6 +32,10 @@ this.upper = Math.max(lower, upper); } + public DoubleBounds(Range range) { + this.lower = range.getLowerBound(); + this.upper = range.getUpperBound(); + } @Override public Number getLower() {