Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/process/Processor.java @ 4443:af728a5e0329
Introduce a new Interface to abstract the data to curve generation
A Processor class should be used to generate curves from a specific data input
(e.g. WQKm).
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 07 Nov 2012 14:07:52 +0100 |
parents | |
children | b195fede1c3b |
comparison
equal
deleted
inserted
replaced
4442:26774405c884 | 4443:af728a5e0329 |
---|---|
1 package de.intevation.flys.exports.process; | |
2 | |
3 import org.w3c.dom.Document; | |
4 | |
5 import de.intevation.artifactdatabase.state.ArtifactAndFacet; | |
6 import de.intevation.flys.exports.XYChartGenerator; | |
7 | |
8 /** | |
9 * A processor is intended to generate an output e.g. curve in a chart diagramm from | |
10 * arbitrary data input which can be reused in several generators. | |
11 * | |
12 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | |
13 */ | |
14 public interface Processor { | |
15 | |
16 /** | |
17 * Processes data to generate e.g. a chart. | |
18 * | |
19 * @param generator XYChartGenerator to add output on. | |
20 * @param aandf The artifact and facet | |
21 * @param theme The theme that contains styling information. | |
22 * @param visible The visibility of the curve. | |
23 * @param index The index of the curve | |
24 */ | |
25 public void doOut( | |
26 XYChartGenerator generator, | |
27 ArtifactAndFacet aandf, | |
28 Document theme, | |
29 boolean visible, | |
30 int index); | |
31 | |
32 /** | |
33 * Returns true if the Processor class is able to generate output for a facet type | |
34 * | |
35 * @param facettype Name of the facet type | |
36 * @return true if the facettype can be processed | |
37 */ | |
38 public boolean canHandle(String facettype); | |
39 } |