changeset 4037:52a280532c2f

Doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 04 Oct 2012 16:41:40 +0200
parents 10e20830e4e9
children 0189d6b0973a
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java
diffstat 2 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Oct 04 16:40:08 2012 +0200
+++ b/flys-client/ChangeLog	Thu Oct 04 16:41:40 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-04	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java:
+	  Documentation.
+
 2012-10-02	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java	Thu Oct 04 16:40:08 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java	Thu Oct 04 16:41:40 2012 +0200
@@ -38,7 +38,7 @@
 
 
 /**
- * Tab representing and showing one Chart-output.
+ * Tab representing and showing one Chart-output (diagram).
  *
  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
  */
@@ -62,7 +62,7 @@
      * chart. */
     protected ChartInfo chartInfo;
 
-    /** Transformer used to transform image pixels into chart coordinates. */
+    /** Transformer used to transform image pixels into chart (data) coordinates. */
     protected Transform2D[] transformer;
 
     /** The collection view.*/
@@ -507,11 +507,13 @@
     }
 
 
+    /** Access the Canvas holding the rendered Chart. */
     public Canvas getChartImg() {
         return chart;
     }
 
 
+    /** Get associated ChartInfo object. */
     public ChartInfo getChartInfo() {
         return chartInfo;
     }
@@ -523,17 +525,13 @@
 
 
     public Transform2D getTransformer() {
-        if (chartInfo == null) {
-            return null;
-        }
-
-        return chartInfo.getTransformer(0);
+        return getTransformer(0);
     }
 
 
     /**
      * Returns the Transform2D object used to transform image coordinates into
-     * chart coordinates.
+     * chart (data) coordinates.
      *
      * @param pos The index of a specific transformer.
      *

http://dive4elements.wald.intevation.org