public class EventListener extends Object implements PlugIn, IJEventListener, ImageListener, RoiListener, CommandListener
BACKGROUND_COLOR_CHANGED, COLOR_PICKER_CLOSED, FOREGROUND_COLOR_CHANGED, LOG_WINDOW_CLOSED, TOOL_CHANGED
Constructor and Description |
---|
EventListener() |
Modifier and Type | Method and Description |
---|---|
String |
commandExecuting(String command) |
void |
eventOccurred(int eventID) |
void |
imageClosed(ImagePlus imp) |
void |
imageOpened(ImagePlus imp) |
void |
imageUpdated(ImagePlus imp) |
void |
roiModified(ImagePlus img,
int id) |
void |
run(String arg)
This method is called when the plugin is loaded.
|
public void run(String arg)
PlugIn
public void eventOccurred(int eventID)
eventOccurred
in interface IJEventListener
public void imageOpened(ImagePlus imp)
imageOpened
in interface ImageListener
public void imageClosed(ImagePlus imp)
imageClosed
in interface ImageListener
public void imageUpdated(ImagePlus imp)
imageUpdated
in interface ImageListener
public String commandExecuting(String command)
commandExecuting
in interface CommandListener
public void roiModified(ImagePlus img, int id)
roiModified
in interface RoiListener