comparison flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java @ 3723:7b14d00bca8a

Cosmetics, docs. flys-artifacts/trunk@5391 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 07 Sep 2012 13:49:14 +0000
parents 6bfcbe391393
children b679f6048acc
comparison
equal deleted inserted replaced
3722:c91e7db0fd4b 3723:7b14d00bca8a
478 478
479 return new Bounds[] {rx, ry}; 479 return new Bounds[] {rx, ry};
480 } 480 }
481 481
482 482
483 /** Get (zoom)values from request. */
483 public Bounds getDomainAxisRange() { 484 public Bounds getDomainAxisRange() {
484 String[] ranges = getDomainAxisRangeFromRequest(); 485 String[] ranges = getDomainAxisRangeFromRequest();
485 486
486 if (ranges == null || ranges.length < 2) { 487 if (ranges == null || ranges.length < 2) {
487 logger.debug("No zoom range for domain axis specified."); 488 logger.debug("No zoom range for domain axis specified.");
549 valueAxisBounds); 550 valueAxisBounds);
550 } 551 }
551 } 552 }
552 553
553 554
555 /**
556 * @param plot the plot.
557 * @param axis the value (x, time) axis of which to set bounds.
558 * @param total the current bounds (?).
559 */
554 protected void zoomX( 560 protected void zoomX(
555 XYPlot plot, 561 XYPlot plot,
556 ValueAxis axis, 562 ValueAxis axis,
557 Bounds total, 563 Bounds total,//we could equally nicely getXBounds(0)
558 Bounds user 564 Bounds user
559 ) { 565 ) {
560 if (logger.isDebugEnabled()) { 566 if (logger.isDebugEnabled()) {
561 logger.debug("== Zoom X axis =="); 567 logger.debug("== Zoom X axis ==");
562 logger.debug(" Total axis range : " + total); 568 logger.debug(" Total axis range : " + total);
584 } 590 }
585 } 591 }
586 } 592 }
587 593
588 594
595 /**
596 * @param user zoom values in percent.
597 */
589 protected void zoomY( 598 protected void zoomY(
590 XYPlot plot, 599 XYPlot plot,
591 ValueAxis axis, 600 ValueAxis axis,
592 Bounds total, 601 Bounds total,
593 Bounds user 602 Bounds user
622 631
623 632
624 /** 633 /**
625 * Adjusts the axes of a plot. This method sets the <i>labelFont</i> of the 634 * Adjusts the axes of a plot. This method sets the <i>labelFont</i> of the
626 * X axis. 635 * X axis.
636 *
637 * (Duplicate in XYChartGenerator).
627 * 638 *
628 * @param plot The XYPlot of the chart. 639 * @param plot The XYPlot of the chart.
629 */ 640 */
630 protected void adjustAxes(XYPlot plot) { 641 protected void adjustAxes(XYPlot plot) {
631 ValueAxis xaxis = plot.getDomainAxis(); 642 ValueAxis xaxis = plot.getDomainAxis();

http://dive4elements.wald.intevation.org