|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threecoffee.util.DragAdapter
public class DragAdapter
Simple class to enable mouse-dragging a Sprite.
Constructor Summary | |
---|---|
DragAdapter(Sprite s)
Enables dragging the given Sprite. |
Method Summary | |
---|---|
Sprite |
getSprite()
Returns the Sprite that this DragAdapter has control of. |
void |
pressed()
Called when the mouse has been pressed. |
void |
released()
Called when the mouse has been released. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DragAdapter(Sprite s)
Method Detail |
---|
public void released()
public void pressed()
public Sprite getSprite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |