ij.plugin.filter
Class SpecifyROI

java.lang.Object
  extended by ij.plugin.filter.SpecifyROI
All Implemented Interfaces:
PlugInFilter, java.awt.event.ItemListener, java.awt.event.TextListener, java.util.EventListener

public class SpecifyROI
extends java.lang.Object
implements PlugInFilter, java.awt.event.TextListener, java.awt.event.ItemListener

This plugin implements the Edit/Selection/Specify command.

Enhancing the original plugin created by Jeffrey Kuhn, this one takes, in addition to width and height and the option to have an oval ROI from the original program, x & y coordinates, slice number, and the option to have the x & y coordinates centered or in default top left corner of ROI. The original creator is Jeffrey Kuhn, The University of Texas at Austin, jkuhn@ccwf.cc.utexas.edu

Author:
Anthony Padua, Duke University Medical Center, Department of Radiology, padua001@mc.duke.edu

Field Summary
 
Fields inherited from interface ij.plugin.filter.PlugInFilter
DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, ROI_REQUIRED, STACK_REQUIRED, SUPPORTS_MASKING
 
Constructor Summary
SpecifyROI()
           
 
Method Summary
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void run(ImageProcessor ip)
          Called by ImageJ to process the image
 int setup(java.lang.String arg, ImagePlus imp)
          Called by ImageJ when the filter is loaded
 void textValueChanged(java.awt.event.TextEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecifyROI

public SpecifyROI()
Method Detail

setup

public int setup(java.lang.String arg,
                 ImagePlus imp)
Called by ImageJ when the filter is loaded

Specified by:
setup in interface PlugInFilter

run

public void run(ImageProcessor ip)
Called by ImageJ to process the image

Specified by:
run in interface PlugInFilter

textValueChanged

public void textValueChanged(java.awt.event.TextEvent e)
Specified by:
textValueChanged in interface java.awt.event.TextListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener