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 BACKWARD
-  States of the robot.
  
-   controller controller
-  The controller for the robot.
  
-   FORWARD FORWARD
-  States of the robot.
  
-   LEFT LEFT
-  States of the robot.
  
-   RIGHT RIGHT
-  States of the robot.
  
-   STOPPED STOPPED
-  States of the robot.
   
  -   MovitRobotControls() MovitRobotControls()
-  Make the robot controls.
   
  -   keyPressed(KeyEvent) keyPressed(KeyEvent)
-  
  
-   keyReleased(KeyEvent) keyReleased(KeyEvent)
-  
  
-   keyTyped(KeyEvent) keyTyped(KeyEvent)
-  
 Keys are pressed, check them.
  
-   mouseClicked(MouseEvent) mouseClicked(MouseEvent)
-  
  
-   mouseEntered(MouseEvent) mouseEntered(MouseEvent)
-  
 When the mouse is window, make sure the canvas has focus.
  
-   mouseExited(MouseEvent) mouseExited(MouseEvent)
-  
  
-   mousePressed(MouseEvent) mousePressed(MouseEvent)
-  
 Mouse is pressed add the location of the mouse to the flipper zone.
  
-   mouseReleased(MouseEvent) mouseReleased(MouseEvent)
-  
  
-   setController(MovitRobotStub) setController(MovitRobotStub)
-  Set the controller of the robot.
  
-   setPanel(Panel) setPanel(Panel)
-  The panel that contains the image from the camera.
  
-   status() status()
-  The current status of the system.
  
-   stoppedTime() stoppedTime()
-  The last time the system stopped.
   
 FORWARD
FORWARD
 public static int FORWARD
  -  States of the robot.
 
 BACKWARD
BACKWARD
 public static int BACKWARD
  -  States of the robot.
 
 LEFT
LEFT
 public static int LEFT
  -  States of the robot.
 
 RIGHT
RIGHT
 public static int RIGHT
  -  States of the robot.
 
 STOPPED
STOPPED
 public static int STOPPED
  -  States of the robot.
 
 controller
controller
 public MovitRobotStub controller
  -  The controller for the robot.
 
   
 MovitRobotControls
MovitRobotControls
 public MovitRobotControls()
  -  Make the robot controls.
 
   
 setController
setController
 public void setController(MovitRobotStub controller)
  -  Set the controller of the robot.
 
 mousePressed
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
mouseClicked
 public void mouseClicked(MouseEvent event)
  - 
    -  Overrides:
    
-  mouseClicked in class EventControls
  
 
 mouseReleased
mouseReleased
 public void mouseReleased(MouseEvent event)
  - 
    -  Overrides:
    
-  mouseReleased in class EventControls
  
 
 mouseExited
mouseExited
 public void mouseExited(MouseEvent event)
  - 
    -  Overrides:
    
-  mouseExited in class EventControls
  
 
 keyPressed
keyPressed
 public void keyPressed(KeyEvent key)
  - 
    -  Overrides:
    
-  keyPressed in class EventControls
  
 
 keyReleased
keyReleased
 public void keyReleased(KeyEvent key)
  - 
    -  Overrides:
    
-  keyReleased in class EventControls
  
 
 stoppedTime
stoppedTime
 public long stoppedTime()
  -  The last time the system stopped.
 
 status
status
 public int status()
  -  The current status of the system.
 
 mouseEntered
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
setPanel
 public void setPanel(Panel p)
  -  The panel that contains the image from the camera.
 
 keyTyped
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