Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
7102:13a842224694 | 7103:5009b151f146 |
---|---|
10 | 10 |
11 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; | 11 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; |
12 import org.dive4elements.river.artifacts.model.FacetTypes; | 12 import org.dive4elements.river.artifacts.model.FacetTypes; |
13 import org.dive4elements.river.artifacts.model.WKms; | 13 import org.dive4elements.river.artifacts.model.WKms; |
14 import org.dive4elements.river.themes.ThemeDocument; | 14 import org.dive4elements.river.themes.ThemeDocument; |
15 import org.dive4elements.river.exports.DiagramGenerator; | |
15 | 16 |
16 public class WDiffProcessor extends WOutProcessor { | 17 public class WDiffProcessor extends WOutProcessor { |
18 | |
19 public final static String I18N_WDIFF_YAXIS_LABEL = | |
20 "chart.w_differences.yaxis.label"; | |
21 | |
22 public final static String I18N_WDIFF_YAXIS_LABEL_DEFAULT = "m"; | |
17 | 23 |
18 @Override | 24 @Override |
19 public boolean canHandle(String facetType) { | 25 public boolean canHandle(String facetType) { |
20 if (facetType == null) { | 26 if (facetType == null) { |
21 return false; | 27 return false; |
22 } | 28 } |
23 return facetType.equals(FacetTypes.W_DIFFERENCES); | 29 return facetType.equals(FacetTypes.W_DIFFERENCES); |
24 } | 30 } |
31 | |
32 | |
33 @Override | |
34 public String getAxisLabel(DiagramGenerator generator) { | |
35 return generator.msg(I18N_WDIFF_YAXIS_LABEL, | |
36 I18N_WDIFF_YAXIS_LABEL_DEFAULT); | |
37 } | |
25 } | 38 } |
26 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 39 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |