# HG changeset patch # User Felix Wolfsteller # Date 1350505932 -7200 # Node ID 48e09640e8ec44a4f25214ab0c217116797e7415 # Parent f5422364481497816790d7a7eaa106311e3c41f5 Let fix sector average facets in deltawt-diagrams enter inactively. diff -r f54223644814 -r 48e09640e8ec flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixAnalysisCompute.java --- 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; }