[PATCH] Parse config when setup a new diagram
Wald Commits
scm-commit at wald.intevation.org
Thu Sep 19 11:39:04 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1379583540 -7200
# Branch generator-refactoring
# Node ID c4bacc5ddd9b168bb1db2f9d1c7299fc244dc652
# Parent 25a5ce8abfefb8529556c38761f53dfddb7a78ce
Parse config when setup a new diagram.
diff -r 25a5ce8abfef -r c4bacc5ddd9b artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Thu Sep 19 11:29:35 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Thu Sep 19 11:39:00 2013 +0200
@@ -51,6 +51,8 @@
import org.dive4elements.river.jfree.StyledXYSeries;
import org.dive4elements.river.themes.ThemeDocument;
+import org.w3c.dom.Element;
+
/* TODO remove after hackish testing */
import org.dive4elements.river.exports.process.Processor;
import org.dive4elements.river.exports.process.BedDiffHeightYearProcessor;
@@ -101,6 +103,8 @@
/** Whether or not the plot is inverted (left-right). */
private boolean inverted;
+ protected DiagramAttributes diagramAttributes;
+
public DiagramGenerator() {
super();
@@ -108,6 +112,12 @@
yBounds = new HashMap<Integer, Bounds>();
}
+ @Override
+ public void setup(Element config) {
+ logger.debug("DiagramGenerator.setup");
+ diagramAttributes = new DiagramAttributes(config);
+ }
+
/**
* Generate the chart anew (including localized axis and all).
More information about the Dive4elements-commits
mailing list