|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An abstract class for items on a Canvas.. CanvasAbstractItem is the root class of all items drawn on a Canvas.
Method Summary | |
void |
clicked()
Called when a mouse click occurs. |
Canvas |
getCanvas()
Return the canvas. |
void |
initiateMoveX$Y(int deltaX,
int deltaY)
Method to be implemented by subclass. |
void |
setClickSel(Selector sel)
Sets the message that will be sent upon a click on this item. |
void |
setMoveSel(Selector sel)
Sets the message that will effect the motion of the item on the canvas. |
void |
setPostMoveSel(Selector sel)
Sets the message that will dictate what happens after the item is moved. |
void |
setTargetId(java.lang.Object target)
Designates the object to which this item refers. |
Methods inherited from interface swarm.defobj.Drop |
drop |
Methods inherited from interface swarm.defobj.DefinedObject |
compare,
describe,
describeID,
getDisplayName,
getTypeName,
getZone,
perform,
perform$with,
perform$with$with,
perform$with$with$with,
respondsTo,
setDisplayName,
xfprint,
xfprintid,
xprint,
xprintid |
Methods inherited from interface swarm.defobj.GetName |
getName |
Method Detail |
public void setTargetId(java.lang.Object target)
public void setClickSel(Selector sel)
public void setMoveSel(Selector sel)
public void setPostMoveSel(Selector sel)
public void clicked()
public void initiateMoveX$Y(int deltaX, int deltaY)
public Canvas getCanvas()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |