[PATCH 08 of 10] Add meta data to chart series in sq relation
Wald Commits
scm-commit at wald.intevation.org
Wed Jul 2 12:41:09 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1404297223 -7200
# Branch facet-metadata
# Node ID e3f2d8c006fb7c9b8a8e0b39c017e35ab87c69e8
# Parent 98e25342df737032de9668b3bce45d4caae30651
Add meta data to chart series in sq relation.
diff -r 98e25342df73 -r e3f2d8c006fb artifacts/src/main/java/org/dive4elements/river/exports/process/SQRelationProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/SQRelationProcessor.java Wed Jul 02 12:32:59 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/SQRelationProcessor.java Wed Jul 02 12:33:43 2014 +0200
@@ -8,6 +8,8 @@
package org.dive4elements.river.exports.process;
+import java.util.Map;
+
import org.apache.log4j.Logger;
import org.jfree.data.xy.XYSeries;
@@ -41,10 +43,11 @@
boolean visible) {
CallContext context = generator.getCallContext();
String facetName = bundle.getFacetName();
- XYSeries series;
+ StyledXYSeries series;
Object data = bundle.getData(context);
String desc = bundle.getFacetDescription();
-
+ Map<String, String> metaData =
+ bundle.getFacet().getMetaData(bundle.getArtifact(), context);
if (data == null) {
// Check has been here before so we keep it but
// this should never happen.
@@ -80,6 +83,7 @@
logger.error("Could not handle: " + facetName);
return;
}
+ series.putMetaData(metaData, bundle.getArtifact(), context);
if (logger.isDebugEnabled()) {
logger.debug("Series '" + desc + "' has "
More information about the Dive4Elements-commits
mailing list