Name
CanvasAbstractItem -- An abstract class for items on a Canvas.
Description
CanvasAbstractItem is the root class of all items drawn on a Canvas.
Protocols adopted by CanvasAbstractItem
Create Drop
Methods
Phase: Creating
-
createItem Method to be implemented by subclass.
-
createBindings Method to be implemented by subclass.
-
setCanvas: canvas Designates the id of the Canvas in which this item resides.
Phase: Using
-
setTargetId: target Designates the object to which this item refers.
-
setClickSel: (SEL)
sel Sets the message that will be sent upon a click on this item.
-
setMoveSel: (SEL)
sel Sets the message that will effect the motion of the item on the canvas.
-
setPostMoveSel: (SEL)
sel Sets the message that will dictate what happens after the item is moved.
-
clicked Called when a mouse click occurs.
-
initiateMoveX: (long)
delta_x Y: (long)
delta_y Method to be implemented by subclass.
-
getCanvas Return the canvas.