comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartExportHelper.java @ 714:2f25ca828efd

Only generate 'outs' if they have facets. flys-artifacts/trunk@2180 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 21 Jun 2011 16:22:28 +0000
parents 084995dd1c9c
children e6aff80b59ff
comparison
equal deleted inserted replaced
713:dc3a8c45349b 714:2f25ca828efd
175 175
176 // the chart width 176 // the chart width
177 int chartWidth = (Integer) context.getContextValue("chart.width"); 177 int chartWidth = (Integer) context.getContextValue("chart.width");
178 int chartHeight = (Integer) context.getContextValue("chart.height"); 178 int chartHeight = (Integer) context.getContextValue("chart.height");
179 179
180 boolean landscape = chartWidth > chartHeight ? true : false; 180 boolean landscape = chartWidth > chartHeight;
181 181
182 float width = 0; 182 float width = 0;
183 float height = 0; 183 float height = 0;
184 if (landscape) { 184 if (landscape) {
185 width = pageHeight; 185 width = pageHeight;

http://dive4elements.wald.intevation.org