Constructordojox.gfx.Moveable

dojo.require("dojox.gfx.Moveable");
defined in dojox/gfx/Moveable.js

an object, which makes a shape moveable

Usage

function (/*dojox.gfx.Shape*/ shape, /*Object*/ params) (view source)
parametertypedescription
shapedojox.gfx.Shapea shape object to be moved
paramsObjectan optional object with additional parameters; following parameters are recognized:

Jump to PropertiesFunctionsBack to top

stops watching for possible move, deletes all references, so the object can be garbage-collected
called during the very first move notification, can be used to initialize coordinates, can be overwritten. default implementation does nothing
event processor for onmousedown, creates a Mover for the shape
event processor for onmousemove, used only for delayed drags
event processor for onmouseup, used only for delayed delayed drags
FunctiononMove(mover: dojox.gfx.Mover, shift: Object)
called during every move notification, should actually move the node, can be overwritten.
FunctiononMoved(mover: dojox.gfx.Mover, shift: Object)
called after every incremental move, can be overwritten. default implementation does nothing
called before every move operation
called after every move operation
called before every incremental move, can be overwritten. default implementation does nothing

Jump to FunctionsPropertiesBack to top

delay move by this number of pixels
a constructor of custom Mover
a shape object to be moved