comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java @ 4037:52a280532c2f

Doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 04 Oct 2012 16:41:40 +0200
parents 3b4cef59836a
children
comparison
equal deleted inserted replaced
4036:10e20830e4e9 4037:52a280532c2f
36 import java.util.Map; 36 import java.util.Map;
37 import java.util.Stack; 37 import java.util.Stack;
38 38
39 39
40 /** 40 /**
41 * Tab representing and showing one Chart-output. 41 * Tab representing and showing one Chart-output (diagram).
42 * 42 *
43 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 43 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
44 */ 44 */
45 public class ChartOutputTab 45 public class ChartOutputTab
46 extends OutputTab 46 extends OutputTab
60 60
61 /** The ChartInfo object that provides information about the current 61 /** The ChartInfo object that provides information about the current
62 * chart. */ 62 * chart. */
63 protected ChartInfo chartInfo; 63 protected ChartInfo chartInfo;
64 64
65 /** Transformer used to transform image pixels into chart coordinates. */ 65 /** Transformer used to transform image pixels into chart (data) coordinates. */
66 protected Transform2D[] transformer; 66 protected Transform2D[] transformer;
67 67
68 /** The collection view.*/ 68 /** The collection view.*/
69 protected CollectionView view; 69 protected CollectionView view;
70 70
505 public Canvas getChartPanel() { 505 public Canvas getChartPanel() {
506 return right; 506 return right;
507 } 507 }
508 508
509 509
510 /** Access the Canvas holding the rendered Chart. */
510 public Canvas getChartImg() { 511 public Canvas getChartImg() {
511 return chart; 512 return chart;
512 } 513 }
513 514
514 515
516 /** Get associated ChartInfo object. */
515 public ChartInfo getChartInfo() { 517 public ChartInfo getChartInfo() {
516 return chartInfo; 518 return chartInfo;
517 } 519 }
518 520
519 521
521 this.chartInfo = chartInfo; 523 this.chartInfo = chartInfo;
522 } 524 }
523 525
524 526
525 public Transform2D getTransformer() { 527 public Transform2D getTransformer() {
526 if (chartInfo == null) { 528 return getTransformer(0);
527 return null;
528 }
529
530 return chartInfo.getTransformer(0);
531 } 529 }
532 530
533 531
534 /** 532 /**
535 * Returns the Transform2D object used to transform image coordinates into 533 * Returns the Transform2D object used to transform image coordinates into
536 * chart coordinates. 534 * chart (data) coordinates.
537 * 535 *
538 * @param pos The index of a specific transformer. 536 * @param pos The index of a specific transformer.
539 * 537 *
540 * @return the Transform2D object. 538 * @return the Transform2D object.
541 */ 539 */

http://dive4elements.wald.intevation.org