Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/SedimentLoadLSTAProcessor.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 | |
9 package org.dive4elements.river.exports.process; | |
10 | |
11 import org.apache.log4j.Logger; | |
12 | |
13 import org.dive4elements.river.exports.DiagramGenerator; | |
14 | |
15 public class SedimentLoadLSTAProcessor extends SedimentLoadLSProcessor{ | |
16 | |
17 private final static Logger logger = | |
18 Logger.getLogger(SedimentLoadTAProcessor.class); | |
19 | |
20 public static final String I18N_YAXIS_LABEL = | |
21 "chart.sedimentload.ls.yaxis.label.tpera"; | |
22 public static final String I18N_YAXIS_LABEL_DEFAULT = "[t/a]"; | |
23 | |
24 @Override | |
25 public boolean canHandle(String facettype) { | |
26 return facettype.startsWith("sedimentload.ls.ta"); | |
27 } | |
28 | |
29 @Override | |
30 public String getAxisLabel(DiagramGenerator generator) { | |
31 return generator.msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); | |
32 } | |
33 } |