Interface IInteractiveEvents
-
- All Known Implementing Classes:
_AdvancedRadiansRobot,_AdvancedRobot,AdvancedRobot,RateControlRobot,Robot,TeamRobot
public interface IInteractiveEventsAn event interface for receiving interactive events with anIInteractiveRobot.- Since:
- 1.6
- Author:
- Pavel Savara (original), Flemming N. Larsen (contributor)
- See Also:
IInteractiveRobot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonKeyPressed(java.awt.event.KeyEvent event)This method is called when a key has been pressed.voidonKeyReleased(java.awt.event.KeyEvent event)This method is called when a key has been released.voidonKeyTyped(java.awt.event.KeyEvent event)This method is called when a key has been typed (pressed and released).voidonMouseClicked(java.awt.event.MouseEvent event)This method is called when a mouse button has been clicked (pressed and released).voidonMouseDragged(java.awt.event.MouseEvent event)This method is called when a mouse button has been pressed and then dragged.voidonMouseEntered(java.awt.event.MouseEvent event)This method is called when the mouse has entered the battle view.voidonMouseExited(java.awt.event.MouseEvent event)This method is called when the mouse has exited the battle view.voidonMouseMoved(java.awt.event.MouseEvent event)This method is called when the mouse has been moved.voidonMousePressed(java.awt.event.MouseEvent event)This method is called when a mouse button has been pressed.voidonMouseReleased(java.awt.event.MouseEvent event)This method is called when a mouse button has been released.voidonMouseWheelMoved(java.awt.event.MouseWheelEvent event)This method is called when the mouse wheel has been rotated.
-
-
-
Method Detail
-
onKeyPressed
void onKeyPressed(java.awt.event.KeyEvent event)
This method is called when a key has been pressed.See the
sample.Interactiverobot for an example of how to use key events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
KeyListener.keyPressed(KeyEvent),onKeyReleased(KeyEvent),onKeyTyped(KeyEvent)
-
onKeyReleased
void onKeyReleased(java.awt.event.KeyEvent event)
This method is called when a key has been released.See the
sample.Interactiverobot for an example of how to use key events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
KeyListener.keyReleased(KeyEvent),onKeyPressed(KeyEvent),onKeyTyped(KeyEvent)
-
onKeyTyped
void onKeyTyped(java.awt.event.KeyEvent event)
This method is called when a key has been typed (pressed and released).See the
sample.Interactiverobot for an example of how to use key events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
KeyListener.keyTyped(KeyEvent),onKeyPressed(KeyEvent),onKeyReleased(KeyEvent)
-
onMouseClicked
void onMouseClicked(java.awt.event.MouseEvent event)
This method is called when a mouse button has been clicked (pressed and released).See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
MouseListener.mouseClicked(MouseEvent),onMouseMoved(MouseEvent),onMousePressed(MouseEvent),onMouseReleased(MouseEvent),onMouseEntered(MouseEvent),onMouseExited(MouseEvent),onMouseDragged(MouseEvent),onMouseWheelMoved(MouseWheelEvent)
-
onMouseEntered
void onMouseEntered(java.awt.event.MouseEvent event)
This method is called when the mouse has entered the battle view.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
MouseListener.mouseEntered(MouseEvent),onMouseMoved(MouseEvent),onMousePressed(MouseEvent),onMouseReleased(MouseEvent),onMouseClicked(MouseEvent),onMouseExited(MouseEvent),onMouseDragged(MouseEvent),onMouseWheelMoved(MouseWheelEvent)
-
onMouseExited
void onMouseExited(java.awt.event.MouseEvent event)
This method is called when the mouse has exited the battle view.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
MouseListener.mouseExited(MouseEvent),onMouseMoved(MouseEvent),onMousePressed(MouseEvent),onMouseReleased(MouseEvent),onMouseClicked(MouseEvent),onMouseEntered(MouseEvent),onMouseDragged(MouseEvent),onMouseWheelMoved(MouseWheelEvent)
-
onMousePressed
void onMousePressed(java.awt.event.MouseEvent event)
This method is called when a mouse button has been pressed.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
MouseListener.mousePressed(MouseEvent),onMouseMoved(MouseEvent),onMouseReleased(MouseEvent),onMouseClicked(MouseEvent),onMouseEntered(MouseEvent),onMouseExited(MouseEvent),onMouseDragged(MouseEvent),onMouseWheelMoved(MouseWheelEvent)
-
onMouseReleased
void onMouseReleased(java.awt.event.MouseEvent event)
This method is called when a mouse button has been released.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
MouseListener.mouseReleased(MouseEvent),onMouseMoved(MouseEvent),onMousePressed(MouseEvent),onMouseClicked(MouseEvent),onMouseEntered(MouseEvent),onMouseExited(MouseEvent),onMouseDragged(MouseEvent),onMouseWheelMoved(MouseWheelEvent)
-
onMouseMoved
void onMouseMoved(java.awt.event.MouseEvent event)
This method is called when the mouse has been moved.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
MouseMotionListener.mouseMoved(MouseEvent),onMousePressed(MouseEvent),onMouseReleased(MouseEvent),onMouseClicked(MouseEvent),onMouseEntered(MouseEvent),onMouseExited(MouseEvent),onMouseDragged(MouseEvent),onMouseWheelMoved(MouseWheelEvent)
-
onMouseDragged
void onMouseDragged(java.awt.event.MouseEvent event)
This method is called when a mouse button has been pressed and then dragged.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
MouseMotionListener.mouseDragged(MouseEvent),onMouseMoved(MouseEvent),onMousePressed(MouseEvent),onMouseReleased(MouseEvent),onMouseClicked(MouseEvent),onMouseEntered(MouseEvent),onMouseExited(MouseEvent),onMouseWheelMoved(MouseWheelEvent)
-
onMouseWheelMoved
void onMouseWheelMoved(java.awt.event.MouseWheelEvent event)
This method is called when the mouse wheel has been rotated.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- See Also:
MouseWheelListener.mouseWheelMoved(MouseWheelEvent),onMouseMoved(MouseEvent),onMousePressed(MouseEvent),onMouseReleased(MouseEvent),onMouseClicked(MouseEvent),onMouseEntered(MouseEvent),onMouseExited(MouseEvent),onMouseDragged(MouseEvent)
-
-