a:22:{s:9:"#provides";s:18:"dojox.gfx.Moveable";s:9:"#resource";s:15:"gfx/Moveable.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.gfx.Mover";}}s:18:"dojox.gfx.Moveable";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"shape";a:2:{s:4:"type";s:15:"dojox.gfx.Shape";s:7:"summary";s:26:"a shape object to be moved";}s:6:"params";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:83:"an optional object with additional parameters; following parameters are recognized:";}}s:6:"source";s:424:" this.shape = shape; this.delay = (params && params.delay > 0) ? params.delay : 0; this.mover = (params && params.mover) ? params.mover : dojox.gfx.Mover; this.events = [ this.shape.connect("onmousedown", this, "onMouseDown") // cancel text selection and text dragging //, dojo.connect(this.handle, "ondragstart", dojo, "stopEvent") //, dojo.connect(this.handle, "onselectstart", dojo, "stopEvent") ];";s:7:"summary";s:39:"an object, which makes a shape moveable";s:9:"classlike";b:1;}s:26:"dojox.gfx.Moveable.destroy";a:4:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:6:"source";s:98:" dojo.forEach(this.events, this.shape.disconnect, this.shape); this.events = this.shape = null;";s:7:"summary";s:96:"stops watching for possible move, deletes all references, so the object can be garbage-collected";}s:30:"dojox.gfx.Moveable.onMouseDown";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:2:{s:4:"type";s:5:"Event";s:7:"summary";s:11:"mouse event";}}s:6:"source";s:297:" if(this.delay){ this.events.push(this.shape.connect("onmousemove", this, "onMouseMove")); this.events.push(this.shape.connect("onmouseup", this, "onMouseUp")); this._lastX = e.clientX; this._lastY = e.clientY; }else{ new this.mover(this.shape, e, this); } dojo.stopEvent(e);";s:7:"summary";s:62:"event processor for onmousedown, creates a Mover for the shape";}s:30:"dojox.gfx.Moveable.onMouseMove";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:2:{s:4:"type";s:5:"Event";s:7:"summary";s:11:"mouse event";}}s:6:"source";s:190:" if(Math.abs(e.clientX - this._lastX) > this.delay || Math.abs(e.clientY - this._lastY) > this.delay){ this.onMouseUp(e); new this.mover(this.shape, e, this); } dojo.stopEvent(e);";s:7:"summary";s:60:"event processor for onmousemove, used only for delayed drags";}s:28:"dojox.gfx.Moveable.onMouseUp";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:2:{s:4:"type";s:5:"Event";s:7:"summary";s:11:"mouse event";}}s:6:"source";s:87:" this.shape.disconnect(this.events.pop()); this.shape.disconnect(this.events.pop());";s:7:"summary";s:66:"event processor for onmouseup, used only for delayed delayed drags";}s:30:"dojox.gfx.Moveable.onMoveStart";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"mover";a:1:{s:4:"type";s:15:"dojox.gfx.Mover";}}s:6:"source";s:85:" dojo.publish("/gfx/move/start", [mover]); dojo.addClass(dojo.body(), "dojoMove");";s:7:"summary";s:34:"called before every move operation";}s:29:"dojox.gfx.Moveable.onMoveStop";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"mover";a:1:{s:4:"type";s:15:"dojox.gfx.Mover";}}s:6:"source";s:87:" dojo.publish("/gfx/move/stop", [mover]); dojo.removeClass(dojo.body(), "dojoMove");";s:7:"summary";s:33:"called after every move operation";}s:30:"dojox.gfx.Moveable.onFirstMove";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"mover";a:1:{s:4:"type";s:15:"dojox.gfx.Mover";}}s:6:"source";s:2797:"dojo.provide("dojox.gfx.Moveable"); dojo.require("dojox.gfx.Mover"); dojo.declare("dojox.gfx.Moveable", null, { constructor: function(shape, params){ // summary: an object, which makes a shape moveable // shape: dojox.gfx.Shape: a shape object to be moved // params: Object: an optional object with additional parameters; // following parameters are recognized: // delay: Number: delay move by this number of pixels // mover: Object: a constructor of custom Mover this.shape = shape; this.delay = (params && params.delay > 0) ? params.delay : 0; this.mover = (params && params.mover) ? params.mover : dojox.gfx.Mover; this.events = [ this.shape.connect("onmousedown", this, "onMouseDown") // cancel text selection and text dragging //, dojo.connect(this.handle, "ondragstart", dojo, "stopEvent") //, dojo.connect(this.handle, "onselectstart", dojo, "stopEvent") ]; }, // methods destroy: function(){ // summary: stops watching for possible move, deletes all references, so the object can be garbage-collected dojo.forEach(this.events, this.shape.disconnect, this.shape); this.events = this.shape = null; }, // mouse event processors onMouseDown: function(e){ // summary: event processor for onmousedown, creates a Mover for the shape // e: Event: mouse event if(this.delay){ this.events.push(this.shape.connect("onmousemove", this, "onMouseMove")); this.events.push(this.shape.connect("onmouseup", this, "onMouseUp")); this._lastX = e.clientX; this._lastY = e.clientY; }else{ new this.mover(this.shape, e, this); } dojo.stopEvent(e); }, onMouseMove: function(e){ // summary: event processor for onmousemove, used only for delayed drags // e: Event: mouse event if(Math.abs(e.clientX - this._lastX) > this.delay || Math.abs(e.clientY - this._lastY) > this.delay){ this.onMouseUp(e); new this.mover(this.shape, e, this); } dojo.stopEvent(e); }, onMouseUp: function(e){ // summary: event processor for onmouseup, used only for delayed delayed drags // e: Event: mouse event this.shape.disconnect(this.events.pop()); this.shape.disconnect(this.events.pop()); }, // local events onMoveStart: function(/* dojox.gfx.Mover */ mover){ // summary: called before every move operation dojo.publish("/gfx/move/start", [mover]); dojo.addClass(dojo.body(), "dojoMove"); }, onMoveStop: function(/* dojox.gfx.Mover */ mover){ // summary: called after every move operation dojo.publish("/gfx/move/stop", [mover]); dojo.removeClass(dojo.body(), "dojoMove"); }, onFirstMove: function(/* dojox.gfx.Mover */ mover){ // summary: called during the very first move notification, // can be used to initialize coordinates, can be overwritten. // default implementation does nothing";s:7:"summary";s:0:"";}s:25:"dojox.gfx.Moveable.onMove";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"mover";a:1:{s:4:"type";s:15:"dojox.gfx.Mover";}s:5:"shift";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:100:" this.onMoving(mover, shift); this.shape.applyLeftTransform(shift); this.onMoved(mover, shift);";s:7:"summary";s:89:"called during every move notification, should actually move the node, can be overwritten.";}s:27:"dojox.gfx.Moveable.onMoving";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"mover";a:1:{s:4:"type";s:15:"dojox.gfx.Mover";}s:5:"shift";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:3273:"dojo.provide("dojox.gfx.Moveable"); dojo.require("dojox.gfx.Mover"); dojo.declare("dojox.gfx.Moveable", null, { constructor: function(shape, params){ // summary: an object, which makes a shape moveable // shape: dojox.gfx.Shape: a shape object to be moved // params: Object: an optional object with additional parameters; // following parameters are recognized: // delay: Number: delay move by this number of pixels // mover: Object: a constructor of custom Mover this.shape = shape; this.delay = (params && params.delay > 0) ? params.delay : 0; this.mover = (params && params.mover) ? params.mover : dojox.gfx.Mover; this.events = [ this.shape.connect("onmousedown", this, "onMouseDown") // cancel text selection and text dragging //, dojo.connect(this.handle, "ondragstart", dojo, "stopEvent") //, dojo.connect(this.handle, "onselectstart", dojo, "stopEvent") ]; }, // methods destroy: function(){ // summary: stops watching for possible move, deletes all references, so the object can be garbage-collected dojo.forEach(this.events, this.shape.disconnect, this.shape); this.events = this.shape = null; }, // mouse event processors onMouseDown: function(e){ // summary: event processor for onmousedown, creates a Mover for the shape // e: Event: mouse event if(this.delay){ this.events.push(this.shape.connect("onmousemove", this, "onMouseMove")); this.events.push(this.shape.connect("onmouseup", this, "onMouseUp")); this._lastX = e.clientX; this._lastY = e.clientY; }else{ new this.mover(this.shape, e, this); } dojo.stopEvent(e); }, onMouseMove: function(e){ // summary: event processor for onmousemove, used only for delayed drags // e: Event: mouse event if(Math.abs(e.clientX - this._lastX) > this.delay || Math.abs(e.clientY - this._lastY) > this.delay){ this.onMouseUp(e); new this.mover(this.shape, e, this); } dojo.stopEvent(e); }, onMouseUp: function(e){ // summary: event processor for onmouseup, used only for delayed delayed drags // e: Event: mouse event this.shape.disconnect(this.events.pop()); this.shape.disconnect(this.events.pop()); }, // local events onMoveStart: function(/* dojox.gfx.Mover */ mover){ // summary: called before every move operation dojo.publish("/gfx/move/start", [mover]); dojo.addClass(dojo.body(), "dojoMove"); }, onMoveStop: function(/* dojox.gfx.Mover */ mover){ // summary: called after every move operation dojo.publish("/gfx/move/stop", [mover]); dojo.removeClass(dojo.body(), "dojoMove"); }, onFirstMove: function(/* dojox.gfx.Mover */ mover){ // summary: called during the very first move notification, // can be used to initialize coordinates, can be overwritten. // default implementation does nothing }, onMove: function(/* dojox.gfx.Mover */ mover, /* Object */ shift){ // summary: called during every move notification, // should actually move the node, can be overwritten. this.onMoving(mover, shift); this.shape.applyLeftTransform(shift); this.onMoved(mover, shift); }, onMoving: function(/* dojox.gfx.Mover */ mover, /* Object */ shift){ // summary: called before every incremental move, // can be overwritten. // default implementation does nothing";s:7:"summary";s:0:"";}s:26:"dojox.gfx.Moveable.onMoved";a:5:{s:9:"prototype";s:18:"dojox.gfx.Moveable";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"mover";a:1:{s:4:"type";s:15:"dojox.gfx.Mover";}s:5:"shift";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:3465:"dojo.provide("dojox.gfx.Moveable"); dojo.require("dojox.gfx.Mover"); dojo.declare("dojox.gfx.Moveable", null, { constructor: function(shape, params){ // summary: an object, which makes a shape moveable // shape: dojox.gfx.Shape: a shape object to be moved // params: Object: an optional object with additional parameters; // following parameters are recognized: // delay: Number: delay move by this number of pixels // mover: Object: a constructor of custom Mover this.shape = shape; this.delay = (params && params.delay > 0) ? params.delay : 0; this.mover = (params && params.mover) ? params.mover : dojox.gfx.Mover; this.events = [ this.shape.connect("onmousedown", this, "onMouseDown") // cancel text selection and text dragging //, dojo.connect(this.handle, "ondragstart", dojo, "stopEvent") //, dojo.connect(this.handle, "onselectstart", dojo, "stopEvent") ]; }, // methods destroy: function(){ // summary: stops watching for possible move, deletes all references, so the object can be garbage-collected dojo.forEach(this.events, this.shape.disconnect, this.shape); this.events = this.shape = null; }, // mouse event processors onMouseDown: function(e){ // summary: event processor for onmousedown, creates a Mover for the shape // e: Event: mouse event if(this.delay){ this.events.push(this.shape.connect("onmousemove", this, "onMouseMove")); this.events.push(this.shape.connect("onmouseup", this, "onMouseUp")); this._lastX = e.clientX; this._lastY = e.clientY; }else{ new this.mover(this.shape, e, this); } dojo.stopEvent(e); }, onMouseMove: function(e){ // summary: event processor for onmousemove, used only for delayed drags // e: Event: mouse event if(Math.abs(e.clientX - this._lastX) > this.delay || Math.abs(e.clientY - this._lastY) > this.delay){ this.onMouseUp(e); new this.mover(this.shape, e, this); } dojo.stopEvent(e); }, onMouseUp: function(e){ // summary: event processor for onmouseup, used only for delayed delayed drags // e: Event: mouse event this.shape.disconnect(this.events.pop()); this.shape.disconnect(this.events.pop()); }, // local events onMoveStart: function(/* dojox.gfx.Mover */ mover){ // summary: called before every move operation dojo.publish("/gfx/move/start", [mover]); dojo.addClass(dojo.body(), "dojoMove"); }, onMoveStop: function(/* dojox.gfx.Mover */ mover){ // summary: called after every move operation dojo.publish("/gfx/move/stop", [mover]); dojo.removeClass(dojo.body(), "dojoMove"); }, onFirstMove: function(/* dojox.gfx.Mover */ mover){ // summary: called during the very first move notification, // can be used to initialize coordinates, can be overwritten. // default implementation does nothing }, onMove: function(/* dojox.gfx.Mover */ mover, /* Object */ shift){ // summary: called during every move notification, // should actually move the node, can be overwritten. this.onMoving(mover, shift); this.shape.applyLeftTransform(shift); this.onMoved(mover, shift); }, onMoving: function(/* dojox.gfx.Mover */ mover, /* Object */ shift){ // summary: called before every incremental move, // can be overwritten. // default implementation does nothing }, onMoved: function(/* dojox.gfx.Mover */ mover, /* Object */ shift){ // summary: called after every incremental move, // can be overwritten. // default implementation does nothing";s:7:"summary";s:0:"";}s:25:"dojox.gfx.Moveable.events";a:2:{s:8:"instance";s:18:"dojox.gfx.Moveable";s:7:"summary";s:0:"";}s:25:"dojox.gfx.Moveable._lastX";a:3:{s:8:"instance";s:18:"dojox.gfx.Moveable";s:7:"private";b:1;s:7:"summary";s:0:"";}s:25:"dojox.gfx.Moveable._lastY";a:3:{s:8:"instance";s:18:"dojox.gfx.Moveable";s:7:"private";b:1;s:7:"summary";s:0:"";}s:24:"dojox.gfx.Moveable.shape";a:3:{s:8:"instance";s:18:"dojox.gfx.Moveable";s:4:"type";s:15:"dojox.gfx.Shape";s:7:"summary";s:26:"a shape object to be moved";}s:24:"dojox.gfx.Moveable.delay";a:3:{s:8:"instance";s:18:"dojox.gfx.Moveable";s:4:"type";s:6:"Number";s:7:"summary";s:35:"delay move by this number of pixels";}s:24:"dojox.gfx.Moveable.mover";a:3:{s:8:"instance";s:18:"dojox.gfx.Moveable";s:4:"type";s:6:"Object";s:7:"summary";s:29:"a constructor of custom Mover";}s:9:"dojox.gfx";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}