Class JPEGViewer
java.lang.Object
JPEGViewer
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, java.awt.event.WindowListener
- public class JPEGViewer
- extends java.lang.Object
- implements java.awt.event.ActionListener, java.awt.event.WindowListener
A window that can show images from an AbstractJPEGStream. Refreshes
the viewed image at the click of a button.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPEGViewer
public JPEGViewer(AbstractJPEGStream camera)
- Parameters:
camera
- The AbstractJPEGStream whose images we want to see
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
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