Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java @ 804:9058c08eac3a
Added more Javadoc in some classes of state.profile.
gnv-artifacts/trunk@886 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 08 Apr 2010 10:10:04 +0000 |
parents | c4156275c1e1 |
children | 05bf8534a35a |
comparison
equal
deleted
inserted
replaced
803:feae2f9d6c6f | 804:9058c08eac3a |
---|---|
98 | 98 |
99 private static Logger log = Logger | 99 private static Logger log = Logger |
100 .getLogger(TimeSeriesOutputState.class); | 100 .getLogger(TimeSeriesOutputState.class); |
101 | 101 |
102 /** | 102 /** |
103 * Constructor | 103 * Creates a new VerticalProfileOutputState object. |
104 */ | 104 */ |
105 public VerticalProfileOutputState() { | 105 public VerticalProfileOutputState() { |
106 super(); | 106 super(); |
107 super.domainLable = "chart.verticalprofile.title.xaxis"; | 107 super.domainLable = "chart.verticalprofile.title.xaxis"; |
108 } | 108 } |
154 | 154 |
155 return chart; | 155 return chart; |
156 } | 156 } |
157 | 157 |
158 | 158 |
159 /** | |
160 * Creates a csv file of the resulting data and writes it to output stream. | |
161 * | |
162 * @param out The output stream. | |
163 * @param results The data used to create the csv file. | |
164 * @throws UnsupportedEncodingException if the encoding is not supported. | |
165 * @throws IOException if an error occured while writing to output stream. | |
166 * @throws StateException if an error occured while creating the csv file. | |
167 */ | |
159 @Override | 168 @Override |
160 protected void createCSV(OutputStream out, Collection<Result> results) | 169 protected void createCSV(OutputStream out, Collection<Result> results) |
161 throws UnsupportedEncodingException, IOException, StateException | 170 throws UnsupportedEncodingException, IOException, StateException |
162 { | 171 { |
163 Iterator<Result> iter = results.iterator(); | 172 Iterator<Result> iter = results.iterator(); |
209 } | 218 } |
210 export.create(profile, out, results); | 219 export.create(profile, out, results); |
211 } | 220 } |
212 | 221 |
213 | 222 |
223 @Override | |
214 protected String createChartSubtitle(Locale locale, String uuid) { | 224 protected String createChartSubtitle(Locale locale, String uuid) { |
215 return getSelectedFeatureName(uuid); | 225 return getSelectedFeatureName(uuid); |
216 } | 226 } |
217 | 227 |
218 | 228 |
219 | |
220 /** | |
221 * @see de.intevation.gnv.state.timeseries.TimeSeriesOutputState#getStatisticsGenerator() | |
222 */ | |
223 @Override | 229 @Override |
224 protected Statistics getStatisticsGenerator() { | 230 protected Statistics getStatisticsGenerator() { |
225 return new VerticalProfileStatistics(); | 231 return new VerticalProfileStatistics(); |
226 } | 232 } |
227 | 233 |
228 } | 234 } |
235 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |