Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/AbstractSInfoProcessor.java @ 9203:9831f6c60473
AbstractSInfoLineProcessor refactoring
author | gernotbelger |
---|---|
date | Mon, 02 Jul 2018 13:00:59 +0200 |
parents | 6393e05a9610 |
children | 4f411c6ee3ae |
comparison
equal
deleted
inserted
replaced
9202:b4402594213b | 9203:9831f6c60473 |
---|---|
13 import java.util.Map; | 13 import java.util.Map; |
14 import java.util.Set; | 14 import java.util.Set; |
15 | 15 |
16 import org.apache.log4j.Logger; | 16 import org.apache.log4j.Logger; |
17 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; | 17 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; |
18 import org.dive4elements.artifactdatabase.state.Facet; | |
18 import org.dive4elements.artifacts.Artifact; | 19 import org.dive4elements.artifacts.Artifact; |
19 import org.dive4elements.artifacts.CallContext; | 20 import org.dive4elements.artifacts.CallContext; |
20 import org.dive4elements.river.artifacts.D4EArtifact; | 21 import org.dive4elements.river.artifacts.D4EArtifact; |
21 import org.dive4elements.river.artifacts.access.RiverAccess; | 22 import org.dive4elements.river.artifacts.access.RiverAccess; |
22 import org.dive4elements.river.artifacts.common.AbstractCalculationResult; | 23 import org.dive4elements.river.artifacts.common.AbstractCalculationResult; |
23 import org.dive4elements.river.artifacts.common.IResultType; | 24 import org.dive4elements.river.artifacts.common.IResultType; |
24 import org.dive4elements.river.artifacts.context.RiverContext; | 25 import org.dive4elements.river.artifacts.context.RiverContext; |
25 import org.dive4elements.river.artifacts.math.MovingAverage; | 26 import org.dive4elements.river.artifacts.math.MovingAverage; |
26 import org.dive4elements.river.artifacts.model.ZoomScale; | 27 import org.dive4elements.river.artifacts.model.ZoomScale; |
28 import org.dive4elements.river.artifacts.resources.Resources; | |
29 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | |
27 import org.dive4elements.river.exports.DiagramGenerator; | 30 import org.dive4elements.river.exports.DiagramGenerator; |
28 import org.dive4elements.river.exports.StyledSeriesBuilder; | 31 import org.dive4elements.river.exports.StyledSeriesBuilder; |
29 import org.dive4elements.river.exports.process.DefaultProcessor; | 32 import org.dive4elements.river.exports.process.DefaultProcessor; |
30 import org.dive4elements.river.jfree.StyledAreaSeriesCollection; | 33 import org.dive4elements.river.jfree.StyledAreaSeriesCollection; |
31 import org.dive4elements.river.jfree.StyledXYSeries; | 34 import org.dive4elements.river.jfree.StyledXYSeries; |
181 // probably the English version will also show German (CHECK) | 184 // probably the English version will also show German (CHECK) |
182 return generator.msg(this.yAxisLabel, this.yAxisLabel); | 185 return generator.msg(this.yAxisLabel, this.yAxisLabel); |
183 } | 186 } |
184 return generator.msg(this.i18n_axis_label, "MISSING"); | 187 return generator.msg(this.i18n_axis_label, "MISSING"); |
185 } | 188 } |
189 | |
190 // Moved from SInfoLineProcessor: | |
191 protected static final Facet createFacet(final CallContext context, final String hash, final String id, final AbstractCalculationResult result, | |
192 final int index, final String axisLabel, final String facetId, final String description) { | |
193 final String facetFlowDepthFilteredDescription = Resources.getMsg(context.getMeta(), description, description, result.getLabel()); | |
194 return new SInfoResultFacet(index, facetId, facetFlowDepthFilteredDescription, axisLabel, ComputeType.ADVANCE, id, hash); | |
195 } | |
196 | |
186 } | 197 } |