[PATCH 2 of 3] Added inverted attribute for y axis
Wald Commits
scm-commit at wald.intevation.org
Mon Aug 20 09:46:21 CEST 2018
# HG changeset patch
# User mschaefer
# Date 1534750952 -7200
# Node ID eeea16ea0980d691b14f257d33c88c3d9d9a8de0
# Parent e8b1255fc89e3601e17e70bd333d6496a5356951
Added inverted attribute for y axis
diff -r e8b1255fc89e -r eeea16ea0980 artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Mon Aug 20 09:41:07 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Mon Aug 20 09:42:32 2018 +0200
@@ -1294,6 +1294,10 @@
axis.setAutoRangeIncludesZero(true);
}
+ if (axisAttributes.isInverted() == DiagramAttributes.TRUE) {
+ axis.setInverted(true);
+ }
+
axis.setLowerMargin(axisAttributes.getLowerMargin());
axis.setUpperMargin(axisAttributes.getUpperMargin());
More information about the Dive4Elements-commits
mailing list