Class JDialogCaptureScreens

All Implemented Interfaces:
DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogCaptureScreens extends JDialogBase
Dialog (invisible) for capturing slices of a 3d/4d image into a new image.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • currentRectangle

      private Rectangle currentRectangle
      The rectangle that will be captured from the screen to save to a file.
    • imageFrame

      private ViewJFrameImage imageFrame
      The parent image frame.
    • numSlices

      private int numSlices
      Number of slices in the image.
    • currentSlice

      private int currentSlice
  • Constructor Details

    • JDialogCaptureScreens

      public JDialogCaptureScreens(ViewJFrameImage parent)
      Invisible dialog used through script or from the Main frame that captures slices of a 3d/4d Image into a new frame.
      Parameters:
      parent - the parent frame
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Handles the action events (called from script).
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - DOCUMENT ME!
    • writeImage

      private boolean writeImage()
      Scrolls through all z slices of a 3d/4d image and captures them into a new ARGB ModelImage, then puts the ModelImage in a ViewJFrameImage.
      Returns:
      DOCUMENT ME!