Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFacet.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 | e4606eae8ea5 |
children | 204905c16ade |
comparison
equal
deleted
inserted
replaced
8203:238fc722f87a | 8204:c657ddcf1fa6 |
---|---|
35 extends DataFacet | 35 extends DataFacet |
36 implements StaticFacet | 36 implements StaticFacet |
37 { | 37 { |
38 private static Logger log = Logger.getLogger(SedimentLoadFacet.class); | 38 private static Logger log = Logger.getLogger(SedimentLoadFacet.class); |
39 | 39 |
40 private static final String NAME = "sedimentload"; | 40 private static final String NAME = "sedimentload.ta"; |
41 | 41 |
42 public SedimentLoadFacet() { | 42 public SedimentLoadFacet() { |
43 } | 43 } |
44 | 44 |
45 public SedimentLoadFacet(int idx, String name, String description, | 45 public SedimentLoadFacet(int idx, String name, String description, |
86 String idStr = split[0]; | 86 String idStr = split[0]; |
87 | 87 |
88 String fraction = split.length >= 2 ? split[1] : ""; | 88 String fraction = split.length >= 2 ? split[1] : ""; |
89 String years = split.length >= 3 ? split[2] : ""; | 89 String years = split.length >= 3 ? split[2] : ""; |
90 | 90 |
91 // Name has the pattern sedimentload.<grainfraction_name> | 91 // Name has the pattern sedimentload.ta.<grainfraction_name> |
92 name = NAME + "." + fraction; | 92 name = NAME + "." + fraction; |
93 log.debug("Created facet: " + name); | 93 log.debug("Created facet: " + name); |
94 | 94 |
95 description = Resources.getMsg( | 95 description = Resources.getMsg( |
96 callMeta, | 96 callMeta, |