Class JDialogLoadLeica

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

public class JDialogLoadLeica extends JDialogBase
Creates the dialog to remove separate slices in an image. Dialog asks which slices the user wishes to remove; it provides buttons to mark all slices for removal and to de-select any slices from image removal; it gives options to remove or to cancel. Allows 3D or 4D images; 2D images would not make sense with this operation.**(as of 25 Oct, does not yet rename removed slice image when saving)**(as of 1 November, does not yet process the more complicated DICOM images completely.
See Also:
  • Field Details

    • serialVersionUID

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

      private final File headerFile
      DOCUMENT ME!
    • scrollPane

      private JScrollPane scrollPane
      DOCUMENT ME!
    • seriesList

      private JList seriesList
      DOCUMENT ME!
    • successful

      private final boolean successful
      DOCUMENT ME!
      See Also:
  • Constructor Details

    • JDialogLoadLeica

      public JDialogLoadLeica(File headerFile)
      Creates a new JDialogLoadLeica object.
      Parameters:
      headerFile - DOCUMENT ME!
    • JDialogLoadLeica

      public JDialogLoadLeica(Frame theParentFrame, File headerFile)
      Creates a new JDialogLoadLeica object.
      Parameters:
      theParentFrame - DOCUMENT ME!
      headerFile - DOCUMENT ME!
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and calls the algorithm.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers function
    • isSuccessful

      public boolean isSuccessful()
      Accessor that returns the whether or not the algorithm completed successfully.
      Returns:
      DOCUMENT ME!
    • buildList

      private boolean buildList()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • init

      private void init()
      Sets up the GUI (panels, buttons, etc) and displays it on the screen.
    • loadLeica

      private void loadLeica(JDialogLoadLeica.LeicaSeries series)
      Loads the selected Leica series into a new ViewJFrameImage uses the FileTiff to read each Tiff image and construct the appropriate model image based on the LeicaSeries attributes which were read in from the text header.
      Parameters:
      series - LeicaSeries
    • seriesExists

      private boolean seriesExists(JDialogLoadLeica.LeicaSeries leica)
      DOCUMENT ME!
      Parameters:
      leica - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • sortLeicaFiles

      private boolean sortLeicaFiles(JDialogLoadLeica.LeicaSeries series)
      DOCUMENT ME!
      Parameters:
      series - DOCUMENT ME!
      Returns:
      DOCUMENT ME!