Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartSettings.java @ 9124:3f619f8dfa8e
NEw export option for diagramms: with or without extra metadata subtitle
author | gernotbelger |
---|---|
date | Tue, 05 Jun 2018 19:21:23 +0200 |
parents | 5e38e2924c07 |
children |
comparison
equal
deleted
inserted
replaced
9123:1cc7653ca84f | 9124:3f619f8dfa8e |
---|---|
312 protected static void parseExport(ChartSettings target, Node export) { | 312 protected static void parseExport(ChartSettings target, Node export) { |
313 ExportSection section = new ExportSection(); | 313 ExportSection section = new ExportSection(); |
314 | 314 |
315 String width = XMLUtils.xpathString(export, "export/width", null); | 315 String width = XMLUtils.xpathString(export, "export/width", null); |
316 String height = XMLUtils.xpathString(export, "export/height", null); | 316 String height = XMLUtils.xpathString(export, "export/height", null); |
317 String metadata = XMLUtils.xpathString(export, "export/chart_settings_export_metadata", null); | |
317 | 318 |
318 if (log.isDebugEnabled()) { | 319 if (log.isDebugEnabled()) { |
319 log.debug("Found export width : '" + width + "'"); | 320 log.debug("Found export width : '" + width + "'"); |
320 log.debug("Found export height: '" + height + "'"); | 321 log.debug("Found export height: '" + height + "'"); |
321 } | 322 } |
322 | 323 |
323 section.setWidth(Integer.valueOf(width.length() > 0 ? width : "-1")); | 324 section.setWidth(Integer.valueOf(width.length() > 0 ? width : "-1")); |
324 section.setHeight(Integer.valueOf(height.length() > 0 ? height : "-1")); | 325 section.setHeight(Integer.valueOf(height.length() > 0 ? height : "-1")); |
326 section.setMetadata(metadata == null ? false : Boolean.valueOf(metadata)); | |
325 | 327 |
326 target.setExportSection(section); | 328 target.setExportSection(section); |
327 } | 329 } |
328 } | 330 } |
329 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 331 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |