java.lang.Object
ij.plugin.EventListener
- All Implemented Interfaces:
CommandListener,RoiListener,IJEventListener,ImageListener,PlugIn
public class EventListener
extends Object
implements PlugIn, IJEventListener, ImageListener, RoiListener, CommandListener
This plugin implements the Plugins/Utilities/Monitor Events command.
By implementing the IJEventListener, CommandListener, ImageListener
and RoiListener interfaces, it is able to monitor foreground and background
color changes, tool switches, Log window closings, command executions, image
window openings, closings and updates, and ROI changes.
-
Field Summary
Fields inherited from interface ij.IJEventListener
BACKGROUND_COLOR_CHANGED, COLOR_PICKER_CLOSED, FOREGROUND_COLOR_CHANGED, LOG_WINDOW_CLOSED, TOOL_CHANGED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommandExecuting(String command) voideventOccurred(int eventID) voidimageClosed(ImagePlus imp) voidimageOpened(ImagePlus imp) voidimageSaved(ImagePlus imp) voidimageUpdated(ImagePlus imp) voidroiModified(ImagePlus img, int id) voidThis method is called when the plugin is loaded.
-
Constructor Details
-
EventListener
public EventListener()
-
-
Method Details
-
run
Description copied from interface:PlugInThis method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt. -
eventOccurred
public void eventOccurred(int eventID) - Specified by:
eventOccurredin interfaceIJEventListener
-
imageOpened
- Specified by:
imageOpenedin interfaceImageListener
-
imageClosed
- Specified by:
imageClosedin interfaceImageListener
-
imageUpdated
- Specified by:
imageUpdatedin interfaceImageListener
-
imageSaved
-
commandExecuting
- Specified by:
commandExecutingin interfaceCommandListener
-
roiModified
- Specified by:
roiModifiedin interfaceRoiListener
-