|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vigia.server.driver.camera.CameraCommandListener
public class CameraCommandListener
An implementation of the CommandListener for the camera.
Field Summary | |
---|---|
protected Driver |
driver
The camera's driver. |
Constructor Summary | |
---|---|
CameraCommandListener(Driver driver)
Creates a new CameraCommandListener. |
Method Summary | |
---|---|
void |
onClose()
Close the video streaming. |
void |
onInit(int clientPort)
Initializes the camera and starts the video streaming to the client. |
void |
onMove(int pan,
int tilt,
int zoom)
Receives a move command from the client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Driver driver
Constructor Detail |
---|
public CameraCommandListener(Driver driver)
driver
- The camera's driver.Method Detail |
---|
public void onInit(int clientPort)
CommandListener
onInit
in interface CommandListener
clientPort
- The client's port.CommandListener.onInit(int)
public void onMove(int pan, int tilt, int zoom)
CommandListener
onMove
in interface CommandListener
pan
- pan position.tilt
- tilt position.zoom
- zoom position.CommandListener.onMove(int, int, int)
public void onClose()
CommandListener
onClose
in interface CommandListener
CommandListener.onClose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |