Class JDialogSaveSlices

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

public class JDialogSaveSlices extends JDialogBase
Simple dialog to indicate which slices should be saved. There are different constructors based on whether a 3D or 4D image is to be saved, and also if it's a TIFF file. The information entered is saved as a FileWriteOptions object. There is no provision for storing 4D TIFF images, so if TIFF is 4D always save as a set of 3D volumes.
Version:
1.0 Feburary 8, 1999
Author:
Matthew McAuliffe, Neva Cherniavsky
See Also:
  • Field Details

    • serialVersionUID

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

      private boolean afniEnabled
      DOCUMENT ME!
    • corEnabled

      private boolean corEnabled
      DOCUMENT ME!
    • geGenesisEnabled

      private boolean geGenesisEnabled
    • geSigna4XEnabled

      private boolean geSigna4XEnabled
    • enablePackBitWrite

      private boolean enablePackBitWrite
      DOCUMENT ME!
    • fourDimEnabled

      private boolean fourDimEnabled
      DOCUMENT ME!
    • labelDigitNumber

      private JLabel labelDigitNumber
      DOCUMENT ME!
    • labelFirstSlice

      private JLabel labelFirstSlice
      DOCUMENT ME!
    • labelFirstTimePeriod

      private JLabel labelFirstTimePeriod
      DOCUMENT ME!
    • labelLastSlice

      private JLabel labelLastSlice
      DOCUMENT ME!
    • labelLastTimePeriod

      private JLabel labelLastTimePeriod
      DOCUMENT ME!
    • labelStartNumber

      private JLabel labelStartNumber
      DOCUMENT ME!
    • maxTimeValue

      private int maxTimeValue
      DOCUMENT ME!
    • maxValue

      private int maxValue
      DOCUMENT ME!
    • minTimeValue

      private int minTimeValue
      DOCUMENT ME!
    • minValue

      private int minValue
      DOCUMENT ME!
    • multiFileCheckbox

      private JCheckBox multiFileCheckbox
      DOCUMENT ME!
    • options

      private FileWriteOptions options
      DOCUMENT ME!
    • packBitCheckbox

      private JCheckBox packBitCheckbox
      DOCUMENT ME!
    • slicePanel

      private JPanel slicePanel
      DOCUMENT ME!
    • textDigitNumber

      private JTextField textDigitNumber
      DOCUMENT ME!
    • textFirstSlice

      private JTextField textFirstSlice
      DOCUMENT ME!
    • textFirstTimePeriod

      private JTextField textFirstTimePeriod
      DOCUMENT ME!
    • textLastSlice

      private JTextField textLastSlice
      DOCUMENT ME!
    • textLastTimePeriod

      private JTextField textLastTimePeriod
      DOCUMENT ME!
    • textStartNumber

      private JTextField textStartNumber
      DOCUMENT ME!
    • tiffEnabled

      private boolean tiffEnabled
      DOCUMENT ME!
    • tiffPanel

      private JPanel tiffPanel
      DOCUMENT ME!
    • mincEnabled

      private boolean mincEnabled
    • dicomEnabled

      private boolean dicomEnabled
    • timeEnabled

      private boolean timeEnabled
      DOCUMENT ME!
    • timePanel

      private JPanel timePanel
      DOCUMENT ME!
    • dicomInfoPanel

      private JPanel dicomInfoPanel
      Dicom options panel
    • encapJP2Checkbox

      private JCheckBox encapJP2Checkbox
      Check box for specifying whether DICOM files should be saved as an encapsulated JPEG2000
    • stampSecondaryCheckbox

      private JCheckBox stampSecondaryCheckbox
      Check box for specifying whether DICOM files should be stamped with MIPAV information
    • dicomGroup

      private ButtonGroup dicomGroup
    • enhancedDicomButton

      private JRadioButton enhancedDicomButton
      All frames in one file
    • multiFileDicomButton

      private JRadioButton multiFileDicomButton
    • saveAsEncapJP2

      private boolean saveAsEncapJP2
      Whether DICOM files should be saved as an encapsulated JPEG2000
    • stampSecondary

      private boolean stampSecondary
      Whether to stamp DICOM files with the MIPAV secondary stamp
    • saveEnhancedDicom

      private boolean saveEnhancedDicom
      Whether 3D or higher dimensionality dicom images should be saved as a single file
    • enforceDistinctVolumeWriting

      private boolean enforceDistinctVolumeWriting
    • dataType

      private int dataType
    • isFloat

      private boolean isFloat
    • isDouble

      private boolean isDouble
    • floatToShort

      private boolean floatToShort
    • floatToShortCheckbox

      private JCheckBox floatToShortCheckbox
  • Constructor Details

    • JDialogSaveSlices

      public JDialogSaveSlices(Frame theParentFrame, int mnValue, int mxValue, FileWriteOptions options, int dataType)
      Constructs a save dialog meant for a 3D image.
      Parameters:
      theParentFrame - Parent frame.
      mnValue - Lowest slice number in range.
      mxValue - Highest slice number in range.
      options - Structure to store the write options chosen here.
      dataType -
    • JDialogSaveSlices

      public JDialogSaveSlices(Frame theParentFrame, int mnValue, int mxValue, int mnTimeValue, int mxTimeValue, FileWriteOptions options, int dataType)
      Constructs a save dialog meant for a 4D image.
      Parameters:
      theParentFrame - Parent frame.
      mnValue - Lowest slice number in range.
      mxValue - Highest slice number in range.
      mnTimeValue - Lowest time number in range.
      mxTimeValue - Highest time number in range.
      options - Structure to store the write options chosen here.
      dataType -
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and sets the information; when multi checkbox is selected or deselected, enables or disables appropriate labels and text fields; and disposes on cancel.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers this function.
    • getWriteOptions

      public FileWriteOptions getWriteOptions()
      Returns the necessary options that the user set in this dialog.
      Returns:
      A structure holding the write options that the user set up.
    • doStampSecondary

      public boolean doStampSecondary()
      Returns:
      Whether dicom files should be stamped with MIPAV information.
    • doSaveEnhancedDicom

      public boolean doSaveEnhancedDicom()
      Returns:
      Whether dicom should be saved in enhanced format.
    • getSaveAsEncapJP2

      public boolean getSaveAsEncapJP2()
    • getFloatToShort

      public boolean getFloatToShort()
    • init

      private void init()
      Sets up GUI and displays the dialog.