All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.movitrobot.MovitRobotControls
java.lang.Object
|
+----pinball.player.EventControls
|
+----pinball.player.movitrobot.MovitRobotControls
- public class MovitRobotControls
- extends EventControls
Control the robot by keys as a test, but the robot can control itself.
-
BACKWARD
- States of the robot.
-
controller
- The controller for the robot.
-
FORWARD
- States of the robot.
-
LEFT
- States of the robot.
-
RIGHT
- States of the robot.
-
STOPPED
- States of the robot.
-
MovitRobotControls()
- Make the robot controls.
-
keyPressed(KeyEvent)
-
-
keyReleased(KeyEvent)
-
-
keyTyped(KeyEvent)
-
Keys are pressed, check them.
-
mouseClicked(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
When the mouse is window, make sure the canvas has focus.
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
Mouse is pressed add the location of the mouse to the flipper zone.
-
mouseReleased(MouseEvent)
-
-
setController(MovitRobotStub)
- Set the controller of the robot.
-
setPanel(Panel)
- The panel that contains the image from the camera.
-
status()
- The current status of the system.
-
stoppedTime()
- The last time the system stopped.
FORWARD
public static int FORWARD
- States of the robot.
BACKWARD
public static int BACKWARD
- States of the robot.
LEFT
public static int LEFT
- States of the robot.
RIGHT
public static int RIGHT
- States of the robot.
STOPPED
public static int STOPPED
- States of the robot.
controller
public MovitRobotStub controller
- The controller for the robot.
MovitRobotControls
public MovitRobotControls()
- Make the robot controls.
setController
public void setController(MovitRobotStub controller)
- Set the controller of the robot.
mousePressed
public void mousePressed(MouseEvent event)
- Mouse is pressed add the location of the mouse to the flipper zone.
- Parameters:
- event - the mouse was pressed.
- Overrides:
- mousePressed in class EventControls
mouseClicked
public void mouseClicked(MouseEvent event)
- Overrides:
- mouseClicked in class EventControls
mouseReleased
public void mouseReleased(MouseEvent event)
- Overrides:
- mouseReleased in class EventControls
mouseExited
public void mouseExited(MouseEvent event)
- Overrides:
- mouseExited in class EventControls
keyPressed
public void keyPressed(KeyEvent key)
- Overrides:
- keyPressed in class EventControls
keyReleased
public void keyReleased(KeyEvent key)
- Overrides:
- keyReleased in class EventControls
stoppedTime
public long stoppedTime()
- The last time the system stopped.
status
public int status()
- The current status of the system.
mouseEntered
public void mouseEntered(MouseEvent event)
- When the mouse is window, make sure the canvas has focus.
- Parameters:
- event - Mouse has entered the window.
- Overrides:
- mouseEntered in class EventControls
setPanel
public void setPanel(Panel p)
- The panel that contains the image from the camera.
keyTyped
public void keyTyped(KeyEvent key)
- Keys are pressed, check them.
- Parameters:
- key - the key pressed.
- Overrides:
- keyTyped in class EventControls
All Packages Class Hierarchy This Package Previous Next Index