Module ij
Package ij.gui

Class ImageWindow

    • Field Detail

      • closed

        protected boolean closed
      • setMenuBarTime

        public static long setMenuBarTime
      • running

        public boolean running
        This variable is set false if the user presses the escape key or closes the window.
      • running2

        public boolean running2
        This variable is set false if the user clicks in this window, presses the escape key, or closes the window.
    • Method Detail

      • getInitialMagnification

        public double getInitialMagnification()
      • getInsets

        public Insets getInsets​(boolean includeSmallImageMargins)
        Override Container getInsets() to make room for some text above the image. With "includeSmallImageMargins", also includes the margins for padding an image that is too small for the window size.
      • drawInfo

        public void drawInfo​(Graphics g)
        Draws the subtitle.
      • createSubtitle

        public String createSubtitle()
        Creates the subtitle.
      • close

        public boolean close()
        Removes this window from the window list and disposes of it. Returns false if the user cancels the "save changes" dialog.
      • getImagePlus

        public ImagePlus getImagePlus()
      • setImage

        public void setImage​(ImagePlus imp2)
      • updateImage

        public void updateImage​(ImagePlus imp)
      • getMaximumBounds

        public Rectangle getMaximumBounds()
      • maximize

        public void maximize()
      • minimize

        public void minimize()
      • isClosed

        public boolean isClosed()
        Has this window been closed?
      • copy

        public void copy​(boolean cut)
        Copies the current ROI to the clipboard. The entire image is copied if there is no ROI.
      • paste

        public void paste()
      • centerNextImage

        public static void centerNextImage()
        Causes the next image to be opened to be centered on the screen and displayed without informational text above the image.
      • setNextLocation

        public static void setNextLocation​(Point loc)
        Causes the next image to be displayed at the specified location.
      • setNextLocation

        public static void setNextLocation​(int x,
                                           int y)
        Causes the next image to be displayed at the specified location.
      • setLocationAndSize

        public void setLocationAndSize​(int x,
                                       int y,
                                       int width,
                                       int height)
        Moves and resizes this window. Changes the magnification so the image fills the window.
      • setLocation

        public void setLocation​(int x,
                                int y)
        Overrides:
        setLocation in class Window
      • setSliderHeight

        public void setSliderHeight​(int height)
      • getSliderHeight

        public int getSliderHeight()
      • setImageJMenuBar

        public static void setImageJMenuBar​(ImageWindow win)