comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java @ 2479:057021593625

Issue 494. Added editor to create manual points with a date as x-value. flys-client/trunk@4247 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 17 Apr 2012 10:21:21 +0000
parents a1ff911e8365
children f25a3eb9785d
comparison
equal deleted inserted replaced
2478:6462a02022ab 2479:057021593625
231 } 231 }
232 232
233 233
234 /** Open editor for custom points. */ 234 /** Open editor for custom points. */
235 protected void openPointWindow() { 235 protected void openPointWindow() {
236 new ManualPointsEditor(chartTab.getView().getCollection(), 236 if (this.chartTab.getMode().getName().equals("historical_discharge")) {
237 this.chartTab, this.chartTab.getMode().getName()).show(); 237 new ManualDatePointsEditor(chartTab.getView().getCollection(),
238 this.chartTab, this.chartTab.getMode().getName()).show();
239 }
240 else {
241 new ManualPointsEditor(chartTab.getView().getCollection(),
242 this.chartTab, this.chartTab.getMode().getName()).show();
243 }
238 } 244 }
239 245
240 246
241 public void onZoom(ZoomEvent evt) { 247 public void onZoom(ZoomEvent evt) {
242 downloadPNG.setSource(chartTab.getExportUrl(-1, -1, "png")); 248 downloadPNG.setSource(chartTab.getExportUrl(-1, -1, "png"));

http://dive4elements.wald.intevation.org