diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-11-22 00:41:39 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-11-22 00:41:39 +0100 |
commit | 610bab43a1ddd085a1c272c5cf6aaf4a85ed8fee (patch) | |
tree | 21ec8be89bdc998cbff52395f7ae8475832f443e /qooxdoo/source/class/Smokeping/ui/Navigator.js | |
parent | 6dbc90c295cb0fbf895ac259dabf9dfa22cbe803 (diff) | |
download | smokeping-610bab43a1ddd085a1c272c5cf6aaf4a85ed8fee.tar.gz smokeping-610bab43a1ddd085a1c272c5cf6aaf4a85ed8fee.tar.xz |
introduction of Shadow graph causes step back ...
Diffstat (limited to 'qooxdoo/source/class/Smokeping/ui/Navigator.js')
-rw-r--r-- | qooxdoo/source/class/Smokeping/ui/Navigator.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/qooxdoo/source/class/Smokeping/ui/Navigator.js b/qooxdoo/source/class/Smokeping/ui/Navigator.js index d568e68..dc28d3e 100644 --- a/qooxdoo/source/class/Smokeping/ui/Navigator.js +++ b/qooxdoo/source/class/Smokeping/ui/Navigator.js @@ -21,17 +21,16 @@ qx.Class.define('Smokeping.ui.Navigator', * */ - construct: function (src,width,height) { - this._graph_src = src; - this._graph_width = width; - this._graph_height = height; + construct: function (graph) { + this._graph = graph; + with(this){ base(arguments,tr("Smokeping Graph Navigator")); set({ showMaximize: false, showMinimize: false, - width: width, - height: height, + width: graph.getWidth(), + height: graph.getHeight(), minWidth: 120, minHeight: 80, backgroundColor: '#f0f0f0' @@ -64,8 +63,7 @@ qx.Class.define('Smokeping.ui.Navigator', _update_image: function(){ var now = (new Date()).getTime(); if (this._lastrun + 1000 < now) { - this._preloader = qx.io.image.PreloaderManager.getInstance().create( - this._graph_src+';w='+this._graph_width+';h='+this._graph_height); + this._preloader = qx.io.image.PreloaderManager.getInstance().create(this._graph.getSrc()); if (this._preloader.isLoaded()){ qx.client.Timer.once(this._show_image,this,0); } else { @@ -88,9 +86,9 @@ qx.Class.define('Smokeping.ui.Navigator', qx.io.image.PreloaderManager.getInstance().remove(this._preloader); removeAll(); add(image); - var zoomer = new Smokeping.ui.Zoomer(image,this._graph_width,this._graph_height,33,30); + var zoomer = new Smokeping.ui.Zoomer(image,this._graph,33,30); add(zoomer); - var mover = new Smokeping.ui.Mover(image,this._graph_src,this._graph_width,this._graph_height,33,30); + var mover = new Smokeping.ui.Mover(image,this._graph,33,30); add(mover); } } |