roomba.roombanetwork.services.image.jmfcam
Class JMFCam

java.lang.Object
  extended by roomba.roombanetwork.services.image.jmfcam.JMFCam
All Implemented Interfaces:
Camera

public class JMFCam
extends java.lang.Object
implements Camera

Class to connect to a Java Media Framework camera and grab images from it

Author:
Drew Housten

Constructor Summary
JMFCam()
          Constructor - connects to the Java Media Framework camera
 
Method Summary
 void disconnect()
          Disconnects the camera
 int getHeight()
          Gets the height of the image that is provided
 java.awt.Image getLatestImage()
          Gets the latest image that was pulled from the camera
 int getWidth()
          Gets the width of the image that is provided
 boolean isInitialized()
          Indicates if the camera has been started and initialized properly
 void reconnect()
          Reconnects the camera
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMFCam

public JMFCam()
Constructor - connects to the Java Media Framework camera

Method Detail

getLatestImage

public java.awt.Image getLatestImage()
Gets the latest image that was pulled from the camera

Specified by:
getLatestImage in interface Camera
Returns:
The latest image

getWidth

public int getWidth()
Gets the width of the image that is provided

Specified by:
getWidth in interface Camera
Returns:
The width of the image

getHeight

public int getHeight()
Gets the height of the image that is provided

Specified by:
getHeight in interface Camera
Returns:
The height of the image

disconnect

public void disconnect()
Disconnects the camera

Specified by:
disconnect in interface Camera

reconnect

public void reconnect()
Reconnects the camera

Specified by:
reconnect in interface Camera

isInitialized

public boolean isInitialized()
Indicates if the camera has been started and initialized properly

Specified by:
isInitialized in interface Camera
Returns:
true iff the camera has been initialized