Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeCurveGenerator.java @ 1684:bdb05dc9b763
Bugfix: #353 Enabled chart's to be drawn with proper axes set even if no data is contained.
flys-artifacts/trunk@2902 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 07 Oct 2011 10:51:09 +0000 |
parents | f4da2009eb8b |
children | 7e19449d7826 |
comparison
equal
deleted
inserted
replaced
1683:acb4d20b130e | 1684:bdb05dc9b763 |
---|---|
94 | 94 |
95 return zoomin; | 95 return zoomin; |
96 } | 96 } |
97 | 97 |
98 | 98 |
99 public void doOut(Artifact artifact, Facet facet, Document attr) { | 99 public void doOut( |
100 Artifact artifact, | |
101 Facet facet, | |
102 Document attr, | |
103 boolean visible | |
104 ) { | |
100 logger.debug("DischargeCurveGenerator.doOut: " + facet.getName()); | 105 logger.debug("DischargeCurveGenerator.doOut: " + facet.getName()); |
101 | 106 |
102 if (!(artifact instanceof WINFOArtifact)) { | 107 if (!(artifact instanceof WINFOArtifact)) { |
103 logger.debug("Artifact is no instance of WINFOArtifact."); | 108 logger.debug("Artifact is no instance of WINFOArtifact."); |
104 return; | 109 return; |
142 | 147 |
143 for (int i = 0; i < size; i++) { | 148 for (int i = 0; i < size; i++) { |
144 series.add(values[0][i], values[1][i]); | 149 series.add(values[0][i], values[1][i]); |
145 } | 150 } |
146 | 151 |
147 addFirstAxisSeries(series); | 152 addFirstAxisSeries(series, visible); |
148 } | 153 } |
149 | 154 |
150 | 155 |
151 protected String getSeriesName(Gauge gauge) { | 156 protected String getSeriesName(Gauge gauge) { |
152 //XXX The following code stops the artifact server accepting new HTTP | 157 //XXX The following code stops the artifact server accepting new HTTP |