diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ChartOutputTab.java @ 213:7ea004d0ffbc

The ChartOutputTab calls the out() operation of a Collection now - no longer the out() of its first artifact. flys-client/trunk@1655 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 07 Apr 2011 11:31:19 +0000
parents f7967d12ce6e
children 6838e4112eeb
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ChartOutputTab.java	Thu Apr 07 10:33:48 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ChartOutputTab.java	Thu Apr 07 11:31:19 2011 +0000
@@ -1,5 +1,7 @@
 package de.intevation.flys.client.client.ui;
 
+import java.util.Date;
+
 import com.google.gwt.core.client.GWT;
 
 import com.smartgwt.client.widgets.Canvas;
@@ -75,19 +77,13 @@
     protected String getImgUrl() {
         Config config = Config.getInstance();
         String server = config.getServerUrl();
-        String uuid   = collection.getItem(0).identifier();
-        String hash   = collection.getItem(0).hash();
 
         String imgUrl = GWT.getModuleBaseURL();
         imgUrl += "chart";
-        imgUrl += "?target=chart";
+        imgUrl += "?uuid=" + collection.identifier();
+        imgUrl += "&type=" + mode.getName();
         imgUrl += "&server=" + server;
-        imgUrl += "&mode=img";
-        imgUrl += "&width=600";
-        imgUrl += "&height=400";
-        imgUrl += "&points=false";
-        imgUrl += "&uuid=" + uuid;
-        imgUrl += "&hash=" + hash;
+        imgUrl += "&timestamp=" + new Date().getTime();
 
         GWT.log("IMAGE URL = " + imgUrl);
 

http://dive4elements.wald.intevation.org