Mercurial > dive4elements > river
changeset 7112:7b88b87958ac generator-refactoring
Fix applying the inversion of diagrams.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 24 Sep 2013 11:40:43 +0200 |
parents | 9b47381e5fd7 |
children | 099f9faf5bf9 |
files | artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Tue Sep 24 11:38:07 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Tue Sep 24 11:40:43 2013 +0200 @@ -857,8 +857,8 @@ xaxis.setLabelFont(labelFont); xaxis.setTickLabelFont(labelFont); - if (isInverted()) { - logger.debug("X-Axis.setInverted(true)"); + logger.debug("Adjusting xAxis. Inverted?: " + inverted); + if (inverted) { xaxis.setInverted(true); } } @@ -964,8 +964,11 @@ /** 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; + public void setInverted(boolean value) { + /* One request to invert dominates. */ + if (!inverted) { + inverted = value; + } } @Override