Mercurial > dive4elements > river
changeset 4166:48e09640e8ec
Let fix sector average facets in deltawt-diagrams enter inactively.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 17 Oct 2012 22:32:12 +0200 (2012-10-17) |
parents | f54223644814 |
children | 42305a7b2cb7 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixAnalysisCompute.java |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixAnalysisCompute.java Wed Oct 17 22:29:18 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixAnalysisCompute.java Wed Oct 17 22:32:12 2012 +0200 @@ -68,6 +68,8 @@ "[HQ5 - \u221e)" }; + // TODO Why does this happen here? In other cases its implemented in the + // respective artifact, not State. static { // Active/deactivate facets. FacetActivity.Registry.getInstance().register( @@ -79,7 +81,8 @@ Facet facet, String output ) { - if (output.contains(FacetTypes.ChartType.FLSC.toString())) { // Longitudinal section chart + if (output.contains(FacetTypes.ChartType.FLSC.toString())) { + // Longitudinal section chart String name = facet.getName(); if (name.contains(FacetTypes.FIX_ANALYSIS_EVENTS_DWT) @@ -92,6 +95,10 @@ return Boolean.FALSE; } } + if (output.contains(FacetTypes.ChartType.FDWC.toString()) + && facet.getName().contains(FacetTypes.FIX_SECTOR_AVERAGE_DWT)) { + return Boolean.FALSE; + } return Boolean.TRUE; }