Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/SedimentLoadLSM3AProcessor.java @ 8204:c657ddcf1fa6
Sediment loads at measurement stations and longitudinal sections need different processing and styling for diagrams.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 14:53:58 +0200 |
parents | |
children | 061e85212d25 |
comparison
equal
deleted
inserted
replaced
8203:238fc722f87a | 8204:c657ddcf1fa6 |
---|---|
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 package org.dive4elements.river.exports.process; | |
9 | |
10 import org.apache.log4j.Logger; | |
11 | |
12 import org.dive4elements.river.exports.DiagramGenerator; | |
13 | |
14 public class SedimentLoadLSM3AProcessor extends SedimentLoadLSProcessor { | |
15 | |
16 private final static Logger logger = | |
17 Logger.getLogger(SedimentLoadM3AProcessor.class); | |
18 | |
19 public static final String I18N_YAXIS_LABEL = | |
20 "chart.sedimentload.ls.yaxis.label.m3pera"; | |
21 public static final String I18N_YAXIS_LABEL_DEFAULT = "[m\u00b3/a]"; | |
22 | |
23 @Override | |
24 public boolean canHandle(String facettype) { | |
25 return facettype.startsWith("sedimentload.ls.m3a"); | |
26 } | |
27 | |
28 @Override | |
29 public String getAxisLabel(DiagramGenerator generator) { | |
30 return generator.msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); | |
31 } | |
32 } |