|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vigia.test.ViewTest
public class ViewTest
Testing GUI Panel Class
Field Summary | |
---|---|
private Panel |
p
Panel for testing |
Constructor Summary | |
---|---|
ViewTest()
Constructor for Testing class |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Simulates controller |
static void |
main(java.lang.String[] args)
Testing GUI |
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 |
---|
private Panel p
Constructor Detail |
---|
public ViewTest()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- Uselesspublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- Event from Viewpublic void onNewFrame(java.awt.image.BufferedImage frame)
FrameListener
onNewFrame
in interface FrameListener
frame
- the frame.FrameListener.onNewFrame(java.awt.image.BufferedImage)
public void onIREvent(Coordinates c, int xVRes, int yVRes) throws VigiaClientException
IRListener
onIREvent
in interface IRListener
c
- the new coordinates of the Wiimote.xVRes
- IR virtual screen x resolution.yVRes
- IR virtual screen y resolution.
VigiaClientException
- error from the listener.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 |