Mercurial > dive4elements > river
changeset 7990:e3f2d8c006fb facet-metadata
Add meta data to chart series in sq relation.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 02 Jul 2014 12:33:43 +0200 |
parents | 98e25342df73 |
children | b57db3a231ba |
files | artifacts/src/main/java/org/dive4elements/river/exports/process/SQRelationProcessor.java |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 "