comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 3169:b6da650b0718

FixA: Added longitudinal section chart. flys-artifacts/trunk@4782 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 25 Jun 2012 15:53:34 +0000
parents 8c78c707aa2d
children 4616436a84f4
comparison
equal deleted inserted replaced
3168:e10323bf3cbc 3169:b6da650b0718
193 /** List of annotations to insert in plot. */ 193 /** List of annotations to insert in plot. */
194 protected List<FLYSAnnotation> annotations; 194 protected List<FLYSAnnotation> annotations;
195 195
196 protected List<Marker> domainMarkers = new ArrayList<Marker>(); 196 protected List<Marker> domainMarkers = new ArrayList<Marker>();
197 197
198 protected List<Marker> valueMarkers = new ArrayList<Marker>();
199
198 /** The max X range to include all X values of all series for each axis. */ 200 /** The max X range to include all X values of all series for each axis. */
199 protected Map<Integer, Bounds> xBounds; 201 protected Map<Integer, Bounds> xBounds;
200 202
201 /** The max Y range to include all Y values of all series for each axis. */ 203 /** The max Y range to include all Y values of all series for each axis. */
202 protected Map<Integer, Bounds> yBounds; 204 protected Map<Integer, Bounds> yBounds;
379 381
380 domainMarkers.add(marker); 382 domainMarkers.add(marker);
381 } 383 }
382 384
383 385
386 /**
387 * Add the given vertical marker to the chart.
388 */
389 public void addValueMarker(Marker marker) {
390 if (marker == null) {
391 return;
392 }
393
394 valueMarkers.add(marker);
395 }
396
397
384 protected void addMarkers(XYPlot plot) { 398 protected void addMarkers(XYPlot plot) {
385 for(Marker marker : domainMarkers) { 399 for(Marker marker : domainMarkers) {
386 plot.addDomainMarker(marker); 400 plot.addDomainMarker(marker);
401 }
402 for(Marker marker : valueMarkers) {
403 plot.addRangeMarker(marker);
387 } 404 }
388 } 405 }
389 406
390 407
391 /** 408 /**

http://dive4elements.wald.intevation.org