Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/DefaultProcessor.java @ 7057:1011a40ee79c generator-refactoring
Add Default Processor implementation and make processors inherit it.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 20 Sep 2013 09:55:17 +0200 |
parents | |
children | f9d5020af0af |
comparison
equal
deleted
inserted
replaced
7052:7056fa3b1f75 | 7057:1011a40ee79c |
---|---|
1 /* Copyright (C) 2013 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.river.exports.process; | |
10 | |
11 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; | |
12 import org.dive4elements.river.exports.XYChartGenerator; | |
13 import org.dive4elements.river.themes.ThemeDocument; | |
14 | |
15 /** Dummy implementation for the Processor interface. | |
16 */ | |
17 public class DefaultProcessor implements Processor { | |
18 | |
19 /** | |
20 * Processes data to generate e.g. a chart. | |
21 * | |
22 * @param generator XYChartGenerator to add output on. | |
23 * @param aandf The artifact and facet | |
24 * @param theme The theme that contains styling information. | |
25 * @param visible The visibility of the curve. | |
26 * @param index The index of the curve | |
27 */ | |
28 public void doOut( | |
29 XYChartGenerator generator, | |
30 ArtifactAndFacet aandf, | |
31 ThemeDocument theme, | |
32 boolean visible, | |
33 int indexu) | |
34 { | |
35 return; | |
36 } | |
37 | |
38 /** | |
39 * Returns true if the Processor class is able to generate output for a facet type | |
40 * | |
41 * @param facettype Name of the facet type | |
42 * @return true if the facettype can be processed | |
43 */ | |
44 public boolean canHandle(String facettype) | |
45 { | |
46 return false; | |
47 } | |
48 } |