Class JPEGStreamViewer

java.lang.Object
  extended byJPEGStreamViewer
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable, java.awt.event.WindowListener

public class JPEGStreamViewer
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable

A window that can show images from an AbstractJPEGStream. Refreshes as soon as a new image is available.


Constructor Summary
JPEGStreamViewer(AbstractJPEGStream camera)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          The ActionListener interface requires this method to be implemented.
 void run()
          The Runnable interface require this methods to be implemented.
 void windowActivated(java.awt.event.WindowEvent e)
          The WindowListener interface requires these methods to be implemented.
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPEGStreamViewer

public JPEGStreamViewer(AbstractJPEGStream camera)
Parameters:
camera - The AbstractJPEGStream whose images we want to see
Method Detail

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
The WindowListener interface requires these methods to be implemented.

Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

run

public void run()
The Runnable interface require this methods to be implemented.

Specified by:
run in interface java.lang.Runnable

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
The ActionListener interface requires this method to be implemented. It is called by the Swing window system whenever one of the buttons is clicked.

Specified by:
actionPerformed in interface java.awt.event.ActionListener