jj2000.disp
Class ExitHandler

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--jj2000.disp.ExitHandler

public class ExitHandler
extends java.awt.event.WindowAdapter

This class implements the WindowHandler for the ImageFrames


Field Summary
private  Decoder dec
          The decoder instance
 
Constructor Summary
ExitHandler(Decoder dec)
          Class constructor.
 
Method Summary
 void windowClosing(java.awt.event.WindowEvent evt)
          Close the window and exit the application
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

dec

private Decoder dec
The decoder instance
Constructor Detail

ExitHandler

public ExitHandler(Decoder dec)
Class constructor. Keep a reference to the decoder to properly exit when windowClosing method is called.
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent evt)
Close the window and exit the application
Overrides:
windowClosing in class java.awt.event.WindowAdapter