1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
// 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");
}
}
|