diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java @ 2477:936e3e6cd9b9

Issue 502. Create label to show coordinates for each y axis in the chart. flys-client/trunk@4220 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 12 Apr 2012 09:49:41 +0000
parents ea6065c2dabe
children c48e3df12c4a
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java	Wed Apr 11 13:24:53 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java	Thu Apr 12 09:49:41 2012 +0000
@@ -199,6 +199,7 @@
      * @param event The OutputParameterChangeEvent.
      */
     public void onOutputParameterChanged(OutputParameterChangeEvent event) {
+        updateChartInfo();
         updateChartPanel();
     }
 
@@ -522,6 +523,20 @@
 
 
     /**
+     * Returns the Transform2D count
+     *
+     * @return the Transformer2D count
+     */
+    public int getTransformerCount() {
+        if (chartInfo == null) {
+            return 0;
+        }
+
+        return chartInfo.getTransformerCount();
+    }
+
+
+    /**
      * Creates a new chart panel with default size.
      *
      * @return the created chart panel.

http://dive4elements.wald.intevation.org