- java.lang.Object
-
- ij.ImageListenerAdapter
-
- All Implemented Interfaces:
ImageListener
public class ImageListenerAdapter extends Object implements ImageListener
An Adapter class for the ImageListener interface. Note ImageListenerAdapter supports notification when an ImagePlus gets saved.With this adapter you need only override the methods that you require notification for.
TODO When ImageJ has a minimum support of Java8 consider updating ImageListener to provide default methods for all these callbacks as this will allow ImageListener interface to be used as mix-in class whereas Java single inheritance precludes that for this ImageListenerAdapter class.
- Author:
- Michael Ellis
-
-
Constructor Summary
Constructors Constructor Description ImageListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
imageClosed(ImagePlus imp)
void
imageOpened(ImagePlus imp)
void
imageSaved(ImagePlus imp)
void
imageUpdated(ImagePlus imp)
-
-
-
Method Detail
-
imageOpened
public void imageOpened(ImagePlus imp)
- Specified by:
imageOpened
in interfaceImageListener
-
imageClosed
public void imageClosed(ImagePlus imp)
- Specified by:
imageClosed
in interfaceImageListener
-
imageUpdated
public void imageUpdated(ImagePlus imp)
- Specified by:
imageUpdated
in interfaceImageListener
-
imageSaved
public void imageSaved(ImagePlus imp)
-
-