ImageJ base code to get access to all the classes and their methods to test new Plugins. https://imagejdocu.tudor.lu/howto/plugins/the_imagej_eclipse_howto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

24 lines
548 B

// Prototype plugin tool. There are more plugin tools at
// http://imagej.nih.gov/ij/plugins/index.html#tools
import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.*;
import ij.plugin.tool.PlugInTool;
import java.awt.event.*;
public class Prototype_Tool extends PlugInTool {
public void mousePressed(ImagePlus imp, MouseEvent e) {
IJ.log("mouse pressed: "+e);
}
public void mouseDragged(ImagePlus imp, MouseEvent e) {
IJ.log("mouse dragged: "+e);
}
public void showOptionsDialog() {
IJ.log("icon double-clicked");
}
}