Mercurial > dive4elements > river
changeset 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 | eb3a2bc5d591 |
files | artifacts/src/main/java/org/dive4elements/river/exports/process/WDiffProcessor.java |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/WDiffProcessor.java Mon Sep 23 15:46:05 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/WDiffProcessor.java Mon Sep 23 15:55:09 2013 +0200 @@ -12,9 +12,15 @@ import org.dive4elements.river.artifacts.model.FacetTypes; import org.dive4elements.river.artifacts.model.WKms; import org.dive4elements.river.themes.ThemeDocument; +import org.dive4elements.river.exports.DiagramGenerator; public class WDiffProcessor extends WOutProcessor { + public final static String I18N_WDIFF_YAXIS_LABEL = + "chart.w_differences.yaxis.label"; + + public final static String I18N_WDIFF_YAXIS_LABEL_DEFAULT = "m"; + @Override public boolean canHandle(String facetType) { if (facetType == null) { @@ -22,5 +28,12 @@ } return facetType.equals(FacetTypes.W_DIFFERENCES); } + + + @Override + public String getAxisLabel(DiagramGenerator generator) { + return generator.msg(I18N_WDIFF_YAXIS_LABEL, + I18N_WDIFF_YAXIS_LABEL_DEFAULT); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :