Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/exports/process/SedimentLoadM3AProcessor.java @ 8207:de280599dd2f
Added new processor for fix derived curve.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 16:54:45 +0200 |
parents | e4606eae8ea5 |
children | 061e85212d25 |
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.apache.log4j.Logger; |
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 |
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
|
12 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
|
13 |
7685
270946b97539
(issue1614) Handle NaN in Styled Series created by SedimentLoadProcessors
Andre Heinecke <aheinecke@intevation.de>
parents:
7511
diff
changeset
|
14 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
|
15 |
8202
e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents:
8148
diff
changeset
|
16 private final static Logger log = |
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
|
17 Logger.getLogger(SedimentLoadM3AProcessor.class); |
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 |
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 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
|
20 "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
|
21 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
|
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 boolean canHandle(String facettype) { |
8148 | 25 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
|
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 |
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
|
28 @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
|
29 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
|
30 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
|
31 } |
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
|
32 } |