- java.lang.Object
-
- ij.gui.RoiProperties
-
- All Implemented Interfaces:
java.awt.event.TextListener,java.awt.event.WindowListener,java.util.EventListener
public class RoiProperties extends java.lang.Object implements java.awt.event.TextListener, java.awt.event.WindowListenerDisplays a dialog that allows the user to specify ROI properties such as color and line width.
-
-
Constructor Summary
Constructors Constructor Description RoiProperties(java.lang.String title, Roi roi)Constructs a RoiProperties using the specified title for a given roi; call showDialog for the actual dialog.RoiProperties(java.lang.String title, ImagePlus imp, Roi roi)Constructs a RoiProperties using the specified title for a given image and roi; call showDialog for the actual dialog.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshowDialog()Displays the dialog box and returns 'false' if the user cancels it.booleanshowImageDialog(java.lang.String name)voidtextValueChanged(java.awt.event.TextEvent e)voidwindowActivated(java.awt.event.WindowEvent e)voidwindowClosed(java.awt.event.WindowEvent e)voidwindowClosing(java.awt.event.WindowEvent e)voidwindowDeactivated(java.awt.event.WindowEvent e)voidwindowDeiconified(java.awt.event.WindowEvent e)voidwindowIconified(java.awt.event.WindowEvent e)voidwindowOpened(java.awt.event.WindowEvent e)
-
-
-
Constructor Detail
-
RoiProperties
public RoiProperties(java.lang.String title, ImagePlus imp, Roi roi)Constructs a RoiProperties using the specified title for a given image and roi; call showDialog for the actual dialog. Note that the title determines which fields will be shown in the dialog.
-
RoiProperties
public RoiProperties(java.lang.String title, Roi roi)Constructs a RoiProperties using the specified title for a given roi; call showDialog for the actual dialog. Note that the title determines which fields will be shown in the dialog.
-
-
Method Detail
-
showDialog
public boolean showDialog()
Displays the dialog box and returns 'false' if the user cancels it.
-
showImageDialog
public boolean showImageDialog(java.lang.String name)
-
textValueChanged
public void textValueChanged(java.awt.event.TextEvent e)
- Specified by:
textValueChangedin interfacejava.awt.event.TextListener
-
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
- Specified by:
windowActivatedin interfacejava.awt.event.WindowListener
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
- Specified by:
windowClosingin interfacejava.awt.event.WindowListener
-
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
- Specified by:
windowOpenedin interfacejava.awt.event.WindowListener
-
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
- Specified by:
windowClosedin interfacejava.awt.event.WindowListener
-
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
- Specified by:
windowIconifiedin interfacejava.awt.event.WindowListener
-
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
- Specified by:
windowDeiconifiedin interfacejava.awt.event.WindowListener
-
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
- Specified by:
windowDeactivatedin interfacejava.awt.event.WindowListener
-
-