ij.plugin
Class EventListener
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventListener
public EventListener()
run
public void run(String arg)
- Description copied from interface:
PlugIn
- This method is called when the plugin is loaded.
'arg', which may be blank, is the argument specified
for this plugin in IJ_Props.txt.
- Specified by:
run in interface PlugIn
eventOccurred
public void eventOccurred(int eventID)
- Specified by:
eventOccurred in interface IJEventListener
imageOpened
public void imageOpened(ImagePlus imp)
- Specified by:
imageOpened in interface ImageListener
imageClosed
public void imageClosed(ImagePlus imp)
- Specified by:
imageClosed in interface ImageListener
imageUpdated
public void imageUpdated(ImagePlus imp)
- Specified by:
imageUpdated in interface ImageListener
commandExecuting
public String commandExecuting(String command)
- Specified by:
commandExecuting in interface CommandListener
roiModified
public void roiModified(ImagePlus img,
int id)
- Specified by:
roiModified in interface RoiListener
Copyright © 1997–2015 NIH. All rights reserved.