CanvasAbstractItem
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
-
setCanvas: (id <Canvas>)
canvas Designates the id of the Canvas in which this item resides.
- (void)
createBindings Method to be implemented by subclass.
- (void)
createItem Method to be implemented by subclass.
Phase: Using
- (id <Canvas>)
getCanvas Return the canvas.
- (void)
initiateMoveX: (long)
deltaX Y: (long)
deltaY Method to be implemented by subclass.
- (void)
clicked Called when a mouse click occurs.
- (void)
setPostMoveSel: (SEL)
sel Sets the message that will dictate what happens after the item is moved.
- (void)
setMoveSel: (SEL)
sel Sets the message that will effect the motion of the item on the canvas.
- (void)
setClickSel: (SEL)
sel Sets the message that will be sent upon a click on this item.
- (void)
setTargetId: target Designates the object to which this item refers.