Mercurial > dive4elements > river
changeset 1690:0053a4529f2f
Bugfix: #220 Made y-axes of longitudinal and crosssection charts look equal.
flys-artifacts/trunk@2912 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 10 Oct 2011 07:31:23 +0000 |
parents | e9475d2ef343 |
children | 17648043429f |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java |
diffstat | 3 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Oct 10 07:07:17 2011 +0000 +++ b/flys-artifacts/ChangeLog Mon Oct 10 07:31:23 2011 +0000 @@ -1,3 +1,12 @@ +2011-10-10 Ingo Weinzierl <ingo@intevation.de> + + flys/issue220 (Diagramm: Achsenbeschriftungen an verschiedenen Achsen müssen gleich aussehen) + + * src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java, + src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java: + Adjusted the label font of the 2nd y-axis - now, both axes labels look + equal. + 2011-10-10 Ingo Weinzierl <ingo@intevation.de> flys/issue189 (WINFO/Dauerlinie: Sortierung der Berechnungsausgabe nach Dauerzahlen aufsteigend)
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Mon Oct 10 07:07:17 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Mon Oct 10 07:31:23 2011 +0000 @@ -1,5 +1,7 @@ package de.intevation.flys.exports; +import java.awt.Font; + import org.apache.log4j.Logger; import org.jfree.chart.JFreeChart; @@ -121,6 +123,9 @@ msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT)); plot.setRangeAxis(1, qAxis); + + Font font = plot.getRangeAxis(0).getLabelFont(); + qAxis.setLabelFont(font); }
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Mon Oct 10 07:07:17 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Mon Oct 10 07:31:23 2011 +0000 @@ -1,5 +1,7 @@ package de.intevation.flys.exports; +import java.awt.Font; + import org.apache.log4j.Logger; import org.jfree.chart.JFreeChart; @@ -129,6 +131,9 @@ plot.setRangeAxis(1, qAxis); + Font font = plot.getRangeAxis(0).getLabelFont(); + qAxis.setLabelFont(font); + invertXAxis(plot.getDomainAxis()); }