Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/exports/process/WDiffProcessor.java @ 7103:5009b151f146 generator-refactoring
Add AxisLabel handling to WDiffProcessor
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 23 Sep 2013 15:55:09 +0200 |
parents | 13a842224694 |
children | 4605d6ca4ee9 |
rev | line source |
---|---|
7102 | 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.artifacts.model.FacetTypes; | |
13 import org.dive4elements.river.artifacts.model.WKms; | |
14 import org.dive4elements.river.themes.ThemeDocument; | |
7103
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
15 import org.dive4elements.river.exports.DiagramGenerator; |
7102 | 16 |
17 public class WDiffProcessor extends WOutProcessor { | |
18 | |
7103
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
19 public final static String I18N_WDIFF_YAXIS_LABEL = |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
20 "chart.w_differences.yaxis.label"; |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
21 |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
22 public final static String I18N_WDIFF_YAXIS_LABEL_DEFAULT = "m"; |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
23 |
7102 | 24 @Override |
25 public boolean canHandle(String facetType) { | |
26 if (facetType == null) { | |
27 return false; | |
28 } | |
29 return facetType.equals(FacetTypes.W_DIFFERENCES); | |
30 } | |
7103
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
31 |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
32 |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
33 @Override |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
34 public String getAxisLabel(DiagramGenerator generator) { |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
35 return generator.msg(I18N_WDIFF_YAXIS_LABEL, |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
36 I18N_WDIFF_YAXIS_LABEL_DEFAULT); |
5009b151f146
Add AxisLabel handling to WDiffProcessor
Andre Heinecke <aheinecke@intevation.de>
parents:
7102
diff
changeset
|
37 } |
7102 | 38 } |
39 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |