The event options are implemented in the ImagePlus
class, not in the ImageStack
.
Your plugin should implement the ImageListener
interface. In its imageUpdated()
method, you should be able to get the current slice number and react accordingly.
Use the static method ImagePlus.addImageListener(this)
to add your plugin as an ImageListener
.