Documentation Set for Swarm 2.0.1
Prev
Reference VIII. Gui Library
Next
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
-
createItem
Method to be implemented by subclass.
-
createBindings
Method to be implemented by subclass.
-
createEnd
Calls createItem and createBindings.
-
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.
Prev
Home
Next
Canvas
Up
CanvasItem