Constructordojox.gfx.Mover

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

an object, which makes a shape follow the mouse, used as a default mover, and as a base class for custom movers

Usage

function (/*dojox.gfx.Shape*/ shape, e, /*Object?*/ host) (view source)
parametertypedescription
shapedojox.gfx.Shapea shape object to be moved
e a mouse event, which started the move; only clientX and clientY properties are used
hostObjectOptional. object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)

Jump to PropertiesFunctionsBack to top

stops the move, deletes all references, so the object can be garbage-collected
it is meant to be called only once
event processor for onmousemove

Jump to FunctionsPropertiesBack to top

object which implements the functionality of the move, and defines proper events (onMoveStart and onMoveStop)
a shape object to be moved