|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GP.Reactors.MouseInteractor
This is a mouse interactor that allows you to define actions that happen when the mouse is moved, or its button is pressed or released. You must override thos class to use it.
Constructor Summary | |
MouseInteractor()
Build a mouse interactor within the applet. |
|
MouseInteractor(Graphic graphic)
Builds a mouse interactor within a graphic. |
Method Summary | |
void |
ButtonMotion()
Override this method to perform an action while the mouse is being moved with the button pressed. |
void |
ButtonPress()
Override this method to perform an action when the mouse button is pressed. |
void |
ButtonRelease()
Override this method to perform an action when the mouse button is released |
Position |
GetPosition()
Use this function to get the position of the mouse at the time of the call. |
void |
TurnOff()
This method is used to make this interactor stop listening to mouse events. |
void |
TurnOn()
This method is used to cause this reactor to listen to mouse events. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MouseInteractor()
public MouseInteractor(Graphic graphic)
container
- graphic in which the mouse interactor will respondMethod Detail |
public void ButtonPress()
public void ButtonRelease()
public void ButtonMotion()
public Position GetPosition()
public void TurnOff()
TurnOff
in interface Reactor
public void TurnOn()
TurnOn
in interface Reactor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |