Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java @ 3133:6f6a8e5fb7a4
Theme updates for sector average wq curves/points
flys-artifacts/trunk@4740 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 21 Jun 2012 12:26:08 +0000 |
parents | 459750878157 |
children | 74c974b10c75 |
comparison
equal
deleted
inserted
replaced
3132:459750878157 | 3133:6f6a8e5fb7a4 |
---|---|
62 @Override | 62 @Override |
63 public void doOut(ArtifactAndFacet aaf, Document doc, boolean visible) { | 63 public void doOut(ArtifactAndFacet aaf, Document doc, boolean visible) { |
64 String name = aaf.getFacetName(); | 64 String name = aaf.getFacetName(); |
65 logger.debug("doOut: " + name); | 65 logger.debug("doOut: " + name); |
66 | 66 |
67 if(FIX_SECTOR_AVERAGE_WQ.equals(name)) { | 67 if(name.startsWith(FIX_SECTOR_AVERAGE_WQ)) { |
68 doSectorAverageOut(aaf, doc, visible); | 68 doSectorAverageOut(aaf, doc, visible); |
69 } | 69 } |
70 else if(FIX_ANALYSIS_EVENTS_WQ.equals(name)) { | 70 else if(FIX_ANALYSIS_EVENTS_WQ.equals(name)) { |
71 doAnalysisEventsOut(aaf, doc, visible); | 71 doAnalysisEventsOut(aaf, doc, visible); |
72 } | 72 } |
93 | 93 |
94 if(qwd != null) { | 94 if(qwd != null) { |
95 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), doc); | 95 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), doc); |
96 series.add(qwd.getQ(), qwd.getW()); | 96 series.add(qwd.getQ(), qwd.getW()); |
97 addAxisSeries(series, 0, visible); | 97 addAxisSeries(series, 0, visible); |
98 } | |
99 else { | |
100 logger.debug("doSectorAverageOut: qwd == null"); | |
98 } | 101 } |
99 } | 102 } |
100 | 103 |
101 /** Add analysis event points to chart */ | 104 /** Add analysis event points to chart */ |
102 protected void doAnalysisEventsOut(ArtifactAndFacet aaf, Document doc, boolean visible) { | 105 protected void doAnalysisEventsOut(ArtifactAndFacet aaf, Document doc, boolean visible) { |