|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgreenfoot.MouseInfo
public class MouseInfo
This class contains information about the current status of the mouse. You
can get a MouseInfo object via Greenfoot.getMouseInfo()
.
Greenfoot.getMouseInfo()
Method Summary | |
---|---|
Actor |
getActor()
Return the actor (if any) that the current mouse behaviour is related to. |
int |
getButton()
The number of the pressed or clicked button (if any). |
int |
getClickCount()
Return the number of mouse clicks associated with this mouse event. |
int |
getX()
Return the current x position of the mouse cursor. |
int |
getY()
Return the current y position of the mouse cursor. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getX()
public int getY()
public Actor getActor()
public int getButton()
public int getClickCount()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |