Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthState.java @ 8877:9f7a285b0ee3
Some work on SINFO FlowDepth
author | gernotbelger |
---|---|
date | Thu, 08 Feb 2018 18:48:24 +0100 |
parents | 7bbfb24e6eec |
children | 64ca63f79f6f |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthState.java Thu Feb 08 18:47:36 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthState.java Thu Feb 08 18:48:24 2018 +0100 @@ -31,6 +31,8 @@ /// ** The log that is used in this state. */ // private static Logger log = Logger.getLogger(FlowDepthState.class); + private static final long serialVersionUID = 1L; + private static final String I18N_FACET_FLOW_DEPTH_FILTERED_DESCRIPTION = "sinfo.facet.flow_depth.filtered.description"; /** @@ -100,13 +102,9 @@ for (int index = 0; index < resultList.size(); index++) { final FlowDepthCalculationResult result = resultList.get(index); - /* compute theme label */ - final String wspLabel = result.getWstLabel(); - final String soundingLabel = result.getSoundingLabel(); - final String inputLabel = String.format("%s - %s", wspLabel, soundingLabel); /* filtered (zoom dependent mean) flow depth */ - final String facetFlowDepthFilteredDescription = Resources.getMsg( context.getMeta(), I18N_FACET_FLOW_DEPTH_FILTERED_DESCRIPTION, I18N_FACET_FLOW_DEPTH_FILTERED_DESCRIPTION, inputLabel ); + final String facetFlowDepthFilteredDescription = Resources.getMsg( context.getMeta(), I18N_FACET_FLOW_DEPTH_FILTERED_DESCRIPTION, I18N_FACET_FLOW_DEPTH_FILTERED_DESCRIPTION, result.getLabel() ); facets.add(new FlowDepthFilterFacet( index, FlowDepthProcessor.FACET_FLOW_DEPTH_FILTERED,