comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.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 bdb05dc9b763
children 2a6baa9e1576
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;
119 121
120 NumberAxis qAxis = new NumberAxis( 122 NumberAxis qAxis = new NumberAxis(
121 msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT)); 123 msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT));
122 124
123 plot.setRangeAxis(1, qAxis); 125 plot.setRangeAxis(1, qAxis);
126
127 Font font = plot.getRangeAxis(0).getLabelFont();
128 qAxis.setLabelFont(font);
124 } 129 }
125 130
126 131
127 /** 132 /**
128 * Let one facet do its job. 133 * Let one facet do its job.

http://dive4elements.wald.intevation.org