comparison flys-artifacts/src/main/java/de/intevation/flys/exports/process/KMIndexProcessor.java @ 4684:f59fbc9bd04a

Fixed out processor to draw sector averages in fix analysis ls.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 17 Dec 2012 15:27:16 +0100
parents 05a54b4d579d
children b195fede1c3b
comparison
equal deleted inserted replaced
4683:4970c1def388 4684:f59fbc9bd04a
20 20
21 @Override 21 @Override
22 public void doOut(XYChartGenerator generator, ArtifactAndFacet aandf, 22 public void doOut(XYChartGenerator generator, ArtifactAndFacet aandf,
23 Document theme, boolean visible, int index) { 23 Document theme, boolean visible, int index) {
24 String facettype = aandf.getFacetName(); 24 String facettype = aandf.getFacetName();
25 if (facettype.contains(FacetTypes.FIX_SECTOR_AVERAGE_LS)) { 25 if (facettype.contains(FacetTypes.FIX_SECTOR_AVERAGE_LS)) {
26 doSectorAverageOut(generator, aandf, theme, visible, index); 26 doSectorAverageOut(generator, aandf, theme, visible, index);
27 } 27 }
28 else if (facettype.equals(FacetTypes.FIX_REFERENCE_EVENTS_LS)) { 28 else if (facettype.equals(FacetTypes.FIX_REFERENCE_EVENTS_LS)) {
29 doReferenceEventsOut(generator, aandf, theme, visible, index); 29 doReferenceEventsOut(generator, aandf, theme, visible, index);
30 } 30 }
38 public boolean canHandle(String facettype) { 38 public boolean canHandle(String facettype) {
39 if (facettype == null) { 39 if (facettype == null) {
40 return false; 40 return false;
41 } 41 }
42 42
43 if (facettype.equals(FacetTypes.FIX_SECTOR_AVERAGE_LS) 43 if (facettype.contains(FacetTypes.FIX_SECTOR_AVERAGE_LS)
44 || facettype.equals(FacetTypes.FIX_REFERENCE_EVENTS_LS) 44 || facettype.equals(FacetTypes.FIX_REFERENCE_EVENTS_LS)
45 || facettype.equals(FacetTypes.FIX_ANALYSIS_EVENTS_LS)) 45 || facettype.equals(FacetTypes.FIX_ANALYSIS_EVENTS_LS))
46 { 46 {
47 return true; 47 return true;
48 } 48 }

http://dive4elements.wald.intevation.org