|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vigia.client.gui.controller.ClientController
public class ClientController
An implementation of the graphic user interface's controller.
| Field Summary | |
|---|---|
protected Communicator |
comm
The communicator. |
protected Driver |
driver
The driver of the IR sensor. |
protected MovementProcessor |
mp
The movement processor. |
protected View |
view
The view. |
| Constructor Summary | |
|---|---|
ClientController(View view,
Driver driver,
MovementProcessor mp)
Creates a new controler for the view and the model. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
onIREvent(Coordinates c,
int xVRes,
int yVRes)
Actions to do when the Wiimote detects a change in the position of the infrared leds. |
void |
onNewFrame(java.awt.image.BufferedImage frame)
Receives a frame from the remote camera. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected View view
protected Driver driver
protected Communicator comm
protected MovementProcessor mp
| Constructor Detail |
|---|
public ClientController(View view,
Driver driver,
MovementProcessor mp)
view - The graphic user interface's view.driver - The driver of the IR sensor.mp - The movement processor.| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerActionListener.actionPerformed(java.awt.event.ActionEvent)public void onNewFrame(java.awt.image.BufferedImage frame)
FrameListener
onNewFrame in interface FrameListenerframe - the frame.FrameListener.onNewFrame(java.awt.image.BufferedImage)
public void onIREvent(Coordinates c,
int xVRes,
int yVRes)
throws VigiaClientException,
java.io.IOException
IRListener
onIREvent in interface IRListenerc - the new coordinates of the Wiimote.xVRes - IR virtual screen x resolution.yVRes - IR virtual screen y resolution.
VigiaClientException - error from the listener.
java.io.IOException - error with the communications.IRListener.onIREvent(org.vigia.client.driver.Coordinates, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||