annotate artifacts/src/main/java/org/dive4elements/river/exports/process/SedimentLoadM3AProcessor.java @ 8366:061e85212d25

s/logger/log/ or removed unused logger.
author Tom Gottfried <tom@intevation.de>
date Thu, 02 Oct 2014 11:04:14 +0200
parents e4606eae8ea5
children
rev   line source
7503
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesanstalt für Gewässerkunde
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
3 *
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
6 * documentation coming with Dive4Elements River for details.
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
7 */
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
8 package org.dive4elements.river.exports.process;
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
9
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
10 import org.dive4elements.river.exports.DiagramGenerator;
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
11
7685
270946b97539 (issue1614) Handle NaN in Styled Series created by SedimentLoadProcessors
Andre Heinecke <aheinecke@intevation.de>
parents: 7511
diff changeset
12 public class SedimentLoadM3AProcessor extends SedimentLoadProcessor {
7503
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
13
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
14 public static final String I18N_YAXIS_LABEL =
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
15 "chart.sedimentload.ls.yaxis.label.m3pera";
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
16 public static final String I18N_YAXIS_LABEL_DEFAULT = "[m\u00b3/a]";
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
17
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
18 @Override
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
19 public boolean canHandle(String facettype) {
8148
eb48b244921d The rest is silence.
Tom Gottfried <tom@intevation.de>
parents: 7685
diff changeset
20 return facettype.startsWith("sedimentload.m3a");
7503
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
21 }
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
22
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
23 @Override
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
24 public String getAxisLabel(DiagramGenerator generator) {
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
25 return generator.msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT);
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
26 }
e11bf92bca4a issue1658: New Processors for t/a and m^3/a -axis (stripped down from SedimentLoadProcessor).
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff changeset
27 }

http://dive4elements.wald.intevation.org