comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 3176:cbaa49896eca

Fix issue663 (step curves for longitudinal_section Qs). flys-artifacts/trunk@4791 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 25 Jun 2012 19:13:16 +0000
parents 5642a83420f2
children ed07dd55f487
comparison
equal deleted inserted replaced
3175:4616436a84f4 3176:cbaa49896eca
40 extends XYChartGenerator 40 extends XYChartGenerator
41 implements FacetTypes 41 implements FacetTypes
42 { 42 {
43 public enum YAXIS { 43 public enum YAXIS {
44 W(0), 44 W(0),
45 Q(1), 45 D(1),
46 D(2); 46 Q(2);
47 protected int idx; 47 protected int idx;
48 private YAXIS(int c) { 48 private YAXIS(int c) {
49 idx = c; 49 idx = c;
50 } 50 }
51 } 51 }
52 52
53 /** The logger that is used in this generator. */ 53 /** The logger that is used in this generator. */
54 private static Logger logger = 54 private static Logger logger =
471 setInverted(true); 471 setInverted(true);
472 } 472 }
473 } 473 }
474 474
475 475
476
477 /** 476 /**
478 * Process the output for Q facets in a longitudinal section curve. 477 * Process the output for Q facets in a longitudinal section curve.
479 * 478 *
480 * @param wqkms An array of WQKms values. 479 * @param wqkms An array of WQKms values.
481 * @param facet The facet. This facet does NOT support any data objects. Use 480 * @param facet The facet. This facet does NOT support any data objects. Use
492 ) { 491 ) {
493 logger.debug("LongitudinalSectionGenerator.doQOut"); 492 logger.debug("LongitudinalSectionGenerator.doQOut");
494 493
495 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); 494 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
496 495
497 StyledSeriesBuilder.addPointsKmQ(series, wqkms); 496 StyledSeriesBuilder.addStepPointsKmQ(series, wqkms);
498 497
499 addAxisSeries(series, YAXIS.Q.idx, visible); 498 addAxisSeries(series, YAXIS.Q.idx, visible);
500 499
501 if (needInvertAxis(wqkms)) { 500 if (needInvertAxis(wqkms)) {
502 setInverted(true); 501 setInverted(true);

http://dive4elements.wald.intevation.org