Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java @ 3617:05deafdcbf39
sloppy logo placement property implementation.
flys-artifacts/trunk@5284 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 28 Aug 2012 15:53:05 +0000 |
parents | f84854eba0b3 |
children | b7867c03760a |
comparison
equal
deleted
inserted
replaced
3616:d4751be54745 | 3617:05deafdcbf39 |
---|---|
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 | 239 |
239 if (logger.isDebugEnabled()) { | 240 if (logger.isDebugEnabled()) { |
240 logger.debug("Found chart title: '" + title + "'"); | 241 logger.debug("Found chart title: '" + title + "'"); |
241 logger.debug("Found chart subtitle: '" + sub + "'"); | 242 logger.debug("Found chart subtitle: '" + sub + "'"); |
242 logger.debug("Found chart grid: '" + grid + "'"); | 243 logger.debug("Found chart grid: '" + grid + "'"); |
243 logger.debug("Found chart logo: '" + logo + "'"); | 244 logger.debug("Found chart logo: '" + logo + "'"); |
245 logger.debug("Found chart logo place: '" + place + "'"); | |
244 } | 246 } |
245 | 247 |
246 chartSection.setTitle(title); | 248 chartSection.setTitle(title); |
247 chartSection.setSubtitle(sub); | 249 chartSection.setSubtitle(sub); |
248 chartSection.setDisplayGrid(Boolean.valueOf(grid)); | 250 chartSection.setDisplayGrid(Boolean.valueOf(grid)); |
249 chartSection.setDisplayLogo(logo); | 251 chartSection.setDisplayLogo(logo); |
252 chartSection.setLogoPlacement(place); | |
253 | |
250 | 254 |
251 target.setChartSection(chartSection); | 255 target.setChartSection(chartSection); |
252 } | 256 } |
253 | 257 |
254 | 258 |