Module ij
Package ij.gui

Class 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.WindowListener
    Displays 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.
    • 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:
        textValueChanged in interface java.awt.event.TextListener
      • windowActivated

        public void windowActivated​(java.awt.event.WindowEvent e)
        Specified by:
        windowActivated in interface java.awt.event.WindowListener
      • windowClosing

        public void windowClosing​(java.awt.event.WindowEvent e)
        Specified by:
        windowClosing in interface java.awt.event.WindowListener
      • windowOpened

        public void windowOpened​(java.awt.event.WindowEvent e)
        Specified by:
        windowOpened in interface java.awt.event.WindowListener
      • windowClosed

        public void windowClosed​(java.awt.event.WindowEvent e)
        Specified by:
        windowClosed in interface java.awt.event.WindowListener
      • windowIconified

        public void windowIconified​(java.awt.event.WindowEvent e)
        Specified by:
        windowIconified in interface java.awt.event.WindowListener
      • windowDeiconified

        public void windowDeiconified​(java.awt.event.WindowEvent e)
        Specified by:
        windowDeiconified in interface java.awt.event.WindowListener
      • windowDeactivated

        public void windowDeactivated​(java.awt.event.WindowEvent e)
        Specified by:
        windowDeactivated in interface java.awt.event.WindowListener