comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 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 7eb9015489b0
children 5201173c3db5
comparison
equal deleted inserted replaced
1689:e9475d2ef343 1690:0053a4529f2f
1 package de.intevation.flys.exports; 1 package de.intevation.flys.exports;
2
3 import java.awt.Font;
2 4
3 import org.apache.log4j.Logger; 5 import org.apache.log4j.Logger;
4 6
5 import org.jfree.chart.JFreeChart; 7 import org.jfree.chart.JFreeChart;
6 import org.jfree.chart.axis.NumberAxis; 8 import org.jfree.chart.axis.NumberAxis;
127 NumberAxis qAxis = new NumberAxis( 129 NumberAxis qAxis = new NumberAxis(
128 msg(I18N_2YAXIS_LABEL, I18N_2YAXIS_LABEL_DEFAULT)); 130 msg(I18N_2YAXIS_LABEL, I18N_2YAXIS_LABEL_DEFAULT));
129 131
130 plot.setRangeAxis(1, qAxis); 132 plot.setRangeAxis(1, qAxis);
131 133
134 Font font = plot.getRangeAxis(0).getLabelFont();
135 qAxis.setLabelFont(font);
136
132 invertXAxis(plot.getDomainAxis()); 137 invertXAxis(plot.getDomainAxis());
133 } 138 }
134 139
135 140
136 /** 141 /**

http://dive4elements.wald.intevation.org