comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java @ 4147:db0b9cff8496

Cosmetics, documentation.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 16 Oct 2012 11:33:23 +0200
parents 58864f4f6e3b
children 33d6d4025d0f
comparison
equal deleted inserted replaced
4143:58864f4f6e3b 4147:db0b9cff8496
53 */ 53 */
54 public class FixWQCurveGenerator 54 public class FixWQCurveGenerator
55 extends FixChartGenerator 55 extends FixChartGenerator
56 implements FacetTypes 56 implements FacetTypes
57 { 57 {
58 /** Private logger. */
58 private static Logger logger = 59 private static Logger logger =
59 Logger.getLogger(FixWQCurveGenerator.class); 60 Logger.getLogger(FixWQCurveGenerator.class);
60 61
61 public static final String I18N_CHART_TITLE = 62 public static final String I18N_CHART_TITLE =
62 "chart.fixings.wq.title"; 63 "chart.fixings.wq.title";
90 idx = c; 91 idx = c;
91 } 92 }
92 } 93 }
93 94
94 95
96 /** Needed to access data to create subtitle. */
95 private FLYSArtifact artifact; 97 private FLYSArtifact artifact;
96 98
97 99
98 @Override 100 @Override
99 public void doOut(ArtifactAndFacet aaf, Document doc, boolean visible) { 101 public void doOut(ArtifactAndFacet aaf, Document doc, boolean visible) {
363 WKms data = (WKms) wqkms; 365 WKms data = (WKms) wqkms;
364 366
365 Double ckm = (Double) context.getContextValue(CURRENT_KM); 367 Double ckm = (Double) context.getContextValue(CURRENT_KM);
366 double location = (ckm != null) 368 double location = (ckm != null)
367 ? ckm.doubleValue() 369 ? ckm.doubleValue()
368 : getRange()[0]; 370 : getRange()[0];
369 double w = StaticWKmsArtifact.getWAtKmLin(data, location); 371 double w = StaticWKmsArtifact.getWAtKmLin(data, location);
370 xy.add(new StickyAxisAnnotation(aandf.getFacetDescription(), 372 xy.add(new StickyAxisAnnotation(aandf.getFacetDescription(),
371 (float) w, StickyAxisAnnotation.SimpleAxis.Y_AXIS)); 373 (float) w, StickyAxisAnnotation.SimpleAxis.Y_AXIS));
372 374
373 doAnnotations(new FLYSAnnotation(facet.getDescription(), xy), 375 doAnnotations(new FLYSAnnotation(facet.getDescription(), xy),
374 aandf, theme, visible); 376 aandf, theme, visible);
375 } 377 }
376 } 378 }
377 379
378 380
379 /** 381 /**

http://dive4elements.wald.intevation.org