j2d.video.producers
Class FileCameraSource

java.lang.Object
  extended by j2d.video.producers.FileCameraSource
All Implemented Interfaces:
CameraSource

public class FileCameraSource
extends java.lang.Object
implements CameraSource


Constructor Summary
FileCameraSource(java.io.File directory, double seconds)
           
 
Method Summary
 void add(ImageListener il)
          Images captured by the camera are sent to the ImageListeners.
 void close()
          Close the camera source.
 java.awt.Image getImage()
          used to get the image for asynchronized capture and initialization.
static void main(java.lang.String[] args)
           
 boolean open()
          Open the camera source for subsequent use via call-backs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCameraSource

public FileCameraSource(java.io.File directory,
                        double seconds)
Method Detail

add

public void add(ImageListener il)
Description copied from interface: CameraSource
Images captured by the camera are sent to the ImageListeners.

Specified by:
add in interface CameraSource

open

public boolean open()
Description copied from interface: CameraSource
Open the camera source for subsequent use via call-backs.

Specified by:
open in interface CameraSource
Returns:
true if the camera source was successfully opened.

close

public void close()
Description copied from interface: CameraSource
Close the camera source. Calling close on a closed CameraSource is permitted but has no effect. The camera source may be reopened after being closed.

Specified by:
close in interface CameraSource

getImage

public java.awt.Image getImage()
Description copied from interface: CameraSource
used to get the image for asynchronized capture and initialization.

Specified by:
getImage in interface CameraSource

main

public static void main(java.lang.String[] args)