comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java @ 3618:b7867c03760a

Split logo placement property in two (vertical/horizontal). flys-artifacts/trunk@5286 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 29 Aug 2012 07:58:08 +0000
parents 05deafdcbf39
children
comparison
equal deleted inserted replaced
3617:05deafdcbf39 3618:b7867c03760a
233 233
234 String title = XMLUtils.xpathString(chart, "chart/title", null); 234 String title = XMLUtils.xpathString(chart, "chart/title", null);
235 String sub = XMLUtils.xpathString(chart, "chart/subtitle", null); 235 String sub = XMLUtils.xpathString(chart, "chart/subtitle", null);
236 String grid = XMLUtils.xpathString(chart, "chart/display-grid", null); 236 String grid = XMLUtils.xpathString(chart, "chart/display-grid", null);
237 String logo = XMLUtils.xpathString(chart, "chart/display-logo", null); 237 String logo = XMLUtils.xpathString(chart, "chart/display-logo", null);
238 String place = XMLUtils.xpathString(chart, "chart/logo-place", null); 238 String placeh = XMLUtils.xpathString(chart, "chart/logo-placeh", null);
239 String placev = XMLUtils.xpathString(chart, "chart/logo-placev", null);
239 240
240 if (logger.isDebugEnabled()) { 241 if (logger.isDebugEnabled()) {
241 logger.debug("Found chart title: '" + title + "'"); 242 logger.debug("Found chart title: '" + title + "'");
242 logger.debug("Found chart subtitle: '" + sub + "'"); 243 logger.debug("Found chart subtitle: '" + sub + "'");
243 logger.debug("Found chart grid: '" + grid + "'"); 244 logger.debug("Found chart grid: '" + grid + "'");
244 logger.debug("Found chart logo: '" + logo + "'"); 245 logger.debug("Found chart logo: '" + logo + "'");
245 logger.debug("Found chart logo place: '" + place + "'"); 246 logger.debug("Found chart logo placeh: '" + placeh + "'");
247 logger.debug("Found chart logo placev: '" + placev + "'");
246 } 248 }
247 249
248 chartSection.setTitle(title); 250 chartSection.setTitle(title);
249 chartSection.setSubtitle(sub); 251 chartSection.setSubtitle(sub);
250 chartSection.setDisplayGrid(Boolean.valueOf(grid)); 252 chartSection.setDisplayGrid(Boolean.valueOf(grid));
251 chartSection.setDisplayLogo(logo); 253 chartSection.setDisplayLogo(logo);
252 chartSection.setLogoPlacement(place); 254 chartSection.setLogoHPlacement(placeh);
253 255 chartSection.setLogoVPlacement(placev);
254 256
255 target.setChartSection(chartSection); 257 target.setChartSection(chartSection);
256 } 258 }
257 259
258 260

http://dive4elements.wald.intevation.org