From 610bab43a1ddd085a1c272c5cf6aaf4a85ed8fee Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Wed, 21 Nov 2007 23:41:39 +0000 Subject: introduction of Shadow graph causes step back ... --- qooxdoo/source/class/Smokeping/ui/Graph.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'qooxdoo/source/class/Smokeping/ui/Graph.js') diff --git a/qooxdoo/source/class/Smokeping/ui/Graph.js b/qooxdoo/source/class/Smokeping/ui/Graph.js index 5bfc225..1d12cdf 100644 --- a/qooxdoo/source/class/Smokeping/ui/Graph.js +++ b/qooxdoo/source/class/Smokeping/ui/Graph.js @@ -20,15 +20,13 @@ qx.Class.define('Smokeping.ui.Graph', */ /** - * @param base_url {String} Path to the location of the image generator + * @param object {GraphShadow} What happens when the SNCF conductors tamazing. * */ - construct: function (src,width,height) { + construct: function (graph) { this.base(arguments); - this._src=src; - this._width=width; - this._height=height; + this._graph=graph; if ( Smokeping_ui_Graph_default_width){ this.setWidth( Smokeping_ui_Graph_default_width) this.setHeight( Smokeping_ui_Graph_default_height); @@ -45,7 +43,7 @@ qx.Class.define('Smokeping.ui.Graph', this._highlight(); var loader = new Smokeping.ui.LoadingAnimation(); this.add(loader); - this._preloader = qx.io.image.PreloaderManager.getInstance().create(this._src+';w='+this._width+';h='+this._height); + this._preloader = qx.io.image.PreloaderManager.getInstance().create(this._graph.getSrc()); if (this._preloader.isLoaded()){ qx.client.Timer.once(this._image_loader,this,0); } else { @@ -73,7 +71,7 @@ qx.Class.define('Smokeping.ui.Graph', with(this){ setEnabled(false); _unhighlight(); - this._window = new Smokeping.ui.Navigator(this._src,this._width*2,this._height*2); + this._window = new Smokeping.ui.Navigator(this._graph); _window.addToDocument(); _window.positionRelativeTo(getElement(),2,-4); addEventListener('beforeDisappear',_kill_window,this); -- cgit v1.2.3-24-g4f1b