All Downloads are FREE. Search and download functionalities are using the official Maven repository.

macros.Prototype_Tool.src Maven / Gradle / Ivy

Go to download

ImageJ is an open source Java image processing program inspired by NIH Image for the Macintosh.

There is a newer version: 1.54m
Show newest version
// 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");
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy