comparison artifacts/src/main/java/org/dive4elements/river/exports/DurationCurveGenerator.java @ 8202:e4606eae8ea5

sed src/**/*.java 's/logger/log/g'
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 12:58:17 +0200
parents 1b35b2ddfc28
children 2b0ff11cef3f
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
43 private YAXIS(int c) { 43 private YAXIS(int c) {
44 idx = c; 44 idx = c;
45 } 45 }
46 } 46 }
47 47
48 /** Local logger. */ 48 /** Local log. */
49 private static Logger logger = 49 private static Logger log =
50 Logger.getLogger(DurationCurveGenerator.class); 50 Logger.getLogger(DurationCurveGenerator.class);
51 51
52 public static final String I18N_CHART_TITLE = 52 public static final String I18N_CHART_TITLE =
53 "chart.duration.curve.title"; 53 "chart.duration.curve.title";
54 54
176 ThemeDocument attr, 176 ThemeDocument attr,
177 boolean visible 177 boolean visible
178 ) { 178 ) {
179 String name = artifactFacet.getFacetName(); 179 String name = artifactFacet.getFacetName();
180 180
181 logger.debug("DurationCurveGenerator.doOut: " + name); 181 log.debug("DurationCurveGenerator.doOut: " + name);
182 182
183 if (name == null || name.length() == 0) { 183 if (name == null || name.length() == 0) {
184 logger.error("No facet given. Cannot create dataset."); 184 log.error("No facet given. Cannot create dataset.");
185 return; 185 return;
186 } 186 }
187 187
188 if (name.equals(DURATION_W)) { 188 if (name.equals(DURATION_W)) {
189 doWOut( 189 doWOut(
221 artifactFacet.getData(context), 221 artifactFacet.getData(context),
222 artifactFacet, 222 artifactFacet,
223 attr, visible, YAXIS.W.idx); 223 attr, visible, YAXIS.W.idx);
224 } 224 }
225 else { 225 else {
226 logger.warn("Unknown facet name: " + name); 226 log.warn("Unknown facet name: " + name);
227 return; 227 return;
228 } 228 }
229 } 229 }
230 230
231 231
239 WQDay wqdays, 239 WQDay wqdays,
240 ArtifactAndFacet aaf, 240 ArtifactAndFacet aaf,
241 ThemeDocument theme, 241 ThemeDocument theme,
242 boolean visible 242 boolean visible
243 ) { 243 ) {
244 logger.debug("DurationCurveGenerator.doWOut"); 244 log.debug("DurationCurveGenerator.doWOut");
245 245
246 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); 246 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme);
247 247
248 int size = wqdays.size(); 248 int size = wqdays.size();
249 for (int i = 0; i < size; i++) { 249 for (int i = 0; i < size; i++) {
260 Point2D point, 260 Point2D point,
261 ArtifactAndFacet aandf, 261 ArtifactAndFacet aandf,
262 ThemeDocument theme, 262 ThemeDocument theme,
263 boolean visible 263 boolean visible
264 ){ 264 ){
265 logger.debug("DurationCurveGenerator.doPointOut"); 265 log.debug("DurationCurveGenerator.doPointOut");
266 266
267 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); 267 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
268 268
269 series.add(point.getX(), point.getY()); 269 series.add(point.getX(), point.getY());
270 270
282 WQDay wqdays, 282 WQDay wqdays,
283 ArtifactAndFacet aaf, 283 ArtifactAndFacet aaf,
284 ThemeDocument theme, 284 ThemeDocument theme,
285 boolean visible 285 boolean visible
286 ) { 286 ) {
287 logger.debug("DurationCurveGenerator.doQOut"); 287 log.debug("DurationCurveGenerator.doQOut");
288 288
289 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); 289 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme);
290 290
291 int size = wqdays.size(); 291 int size = wqdays.size();
292 for (int i = 0; i < size; i++) { 292 for (int i = 0; i < size; i++) {

http://dive4elements.wald.intevation.org