Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChart.java @ 815:22c18083225e
Removed compiler warnings while JavaDoc generation.
gnv-artifacts/trunk@900 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 12 Apr 2010 06:59:33 +0000 |
parents | e8a9e84a0328 |
children | 8b6ef091d38c |
comparison
equal
deleted
inserted
replaced
814:9d427dd2a96a | 815:22c18083225e |
---|---|
89 ); | 89 ); |
90 this.PLOT_ORIENTATION = PlotOrientation.VERTICAL; | 90 this.PLOT_ORIENTATION = PlotOrientation.VERTICAL; |
91 } | 91 } |
92 | 92 |
93 | 93 |
94 /** | |
95 * @see de.intevation.gnv.chart.VerticalProfileChart#getValue(Result) | |
96 */ | |
97 @Override | 94 @Override |
98 protected Object getValue(Result row) { | 95 protected Object getValue(Result row) { |
99 try { | 96 try { |
100 return (Point) wktReader.read(row.getString("SHAPE")); | 97 return (Point) wktReader.read(row.getString("SHAPE")); |
101 } | 98 } |
104 return null; | 101 return null; |
105 } | 102 } |
106 } | 103 } |
107 | 104 |
108 | 105 |
109 /** | |
110 * @see de.intevation.gnv.chart.VerticalProfileChart#gapDetection(Result, | |
111 * Series, int, int) | |
112 */ | |
113 @Override | 106 @Override |
114 protected void gapDetection( | 107 protected void gapDetection( |
115 Result[] results, | 108 Result[] results, |
116 Series series, | 109 Series series, |
117 int startPos, | 110 int startPos, |
142 | 135 |
143 log.debug("Gap detection finished."); | 136 log.debug("Gap detection finished."); |
144 } | 137 } |
145 | 138 |
146 | 139 |
147 /** | |
148 * @see de.intevation.gnv.chart.AbstractXYLineChart(Result, Series) | |
149 */ | |
150 @Override | 140 @Override |
151 protected void addValue(Result row, Series series) { | 141 protected void addValue(Result row, Series series) { |
152 double distance = 0; | 142 double distance = 0; |
153 | 143 |
154 try { | 144 try { |
171 log.warn("No data found while parsing."); | 161 log.warn("No data found while parsing."); |
172 } | 162 } |
173 } | 163 } |
174 | 164 |
175 | 165 |
176 | |
177 /** | |
178 * @see de.intevation.gnv.chart.AbstractXYLineChart#addSeries(Series, | |
179 * String, int) | |
180 */ | |
181 @Override | 166 @Override |
182 protected void addSeries(Series series, String label, int idx) { | 167 protected void addSeries(Series series, String label, int idx) { |
183 super.addSeries(series, label, idx); | 168 super.addSeries(series, label, idx); |
184 | 169 |
185 // reset firstPoint for next series | 170 // reset firstPoint for next series |
186 firstPoint = null; | 171 firstPoint = null; |
187 } | 172 } |
188 | 173 |
189 | 174 |
190 /** | |
191 * @see de.intevation.gnv.chart.VerticalProfileChart#prepareRangeAxis(String, | |
192 * int) | |
193 */ | |
194 @Override | 175 @Override |
195 protected void prepareRangeAxis(String seriesKey, int idx) { | 176 protected void prepareRangeAxis(String seriesKey, int idx) { |
196 return; | 177 return; |
197 // do nothing here | 178 // do nothing here |
198 } | 179 } |
199 | 180 |
200 | 181 |
201 /** | |
202 * @param value | |
203 * @see de.intevation.gnv.chart.VerticalProfileChart#storeMaxValue(Map, | |
204 * Object, String) | |
205 */ | |
206 @Override | 182 @Override |
207 protected void storeMaxValue(Map values, Object value, String parameter) { | 183 protected void storeMaxValue(Map values, Object value, String parameter) { |
208 return; | 184 return; |
209 // do nothing here | 185 // do nothing here |
210 } | 186 } |
211 | 187 |
212 | 188 |
213 /** | |
214 * @see de.intevation.gnv.chart.AbstractXYLineChart#createSeriesName(String, | |
215 * String, String) | |
216 */ | |
217 @Override | 189 @Override |
218 protected String createSeriesName( | 190 protected String createSeriesName( |
219 String breakPoint1, | 191 String breakPoint1, |
220 String breakPoint2, | 192 String breakPoint2, |
221 String breakPoint3 | 193 String breakPoint3 |
228 " " + | 200 " " + |
229 findValueTitle(dates, breakPoint3); | 201 findValueTitle(dates, breakPoint3); |
230 } | 202 } |
231 | 203 |
232 | 204 |
233 /** | |
234 * @see de.intevation.gnv.chart.VerticalProfileChart#addGapsOnGrid(Result[], | |
235 * Series, int, int) | |
236 */ | |
237 @Override | 205 @Override |
238 protected void addGapsOnGrid( | 206 protected void addGapsOnGrid( |
239 Result[] results, | 207 Result[] results, |
240 Series series, | 208 Series series, |
241 int startPos, | 209 int startPos, |
416 ); | 384 ); |
417 | 385 |
418 return (smallDelta > (3.0 / (count - 1) * delta)); | 386 return (smallDelta > (3.0 / (count - 1) * delta)); |
419 } | 387 } |
420 | 388 |
421 /** | 389 |
422 * @see de.intevation.gnv.chart.VerticalProfileChart#getDependendAxisName(Result, | |
423 * Result) | |
424 */ | |
425 @Override | 390 @Override |
426 protected String getDependendAxisName(Result first, Result second) { | 391 protected String getDependendAxisName(Result first, Result second) { |
427 if (first.getInteger("IPOSITION") == second.getInteger("IPOSITION")) | 392 if (first.getInteger("IPOSITION") == second.getInteger("IPOSITION")) |
428 return "JPOSITION"; | 393 return "JPOSITION"; |
429 | 394 |