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

2 years ago
  1. // Prototype plugin tool. There are more plugin tools at
  2. // http://imagej.nih.gov/ij/plugins/index.html#tools
  3. import ij.*;
  4. import ij.process.*;
  5. import ij.gui.*;
  6. import java.awt.*;
  7. import ij.plugin.tool.PlugInTool;
  8. import java.awt.event.*;
  9. public class Prototype_Tool extends PlugInTool {
  10. public void mousePressed(ImagePlus imp, MouseEvent e) {
  11. IJ.log("mouse pressed: "+e);
  12. }
  13. public void mouseDragged(ImagePlus imp, MouseEvent e) {
  14. IJ.log("mouse dragged: "+e);
  15. }
  16. public void showOptionsDialog() {
  17. IJ.log("icon double-clicked");
  18. }
  19. }