Class JDialogAnalyzeNIFTIChoice

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

public class JDialogAnalyzeNIFTIChoice extends JDialogBase
Confirmation Dialog giving user the choice to write an analyze file , interfile file, or a nifti file.
See Also:
  • Field Details

    • serialVersionUID

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

      private JRadioButton analyzeFile
      Radio button to indicate that an analyze img file should be written out.
    • zeroCheckBox

      private JCheckBox zeroCheckBox
      Checkbox to zero funused fields at 112, 116, and 120. Default is not selected.
    • interfileFile

      private JRadioButton interfileFile
      Radio button to indicate that an Interfile img file should be written out.
    • niftiFile

      private JRadioButton niftiFile
      Radio button to indicate that a nifti img file should be written out.
    • okayPressed

      private boolean okayPressed
      Whether the window was closed through the user clicking the OK button (and not just killing the dialog).
    • comboBoxSaveMethod

      private JComboBox comboBoxSaveMethod
      Whether to save as selected by dialog or always as analyze, interfile, or nifti.
  • Constructor Details

    • JDialogAnalyzeNIFTIChoice

      public JDialogAnalyzeNIFTIChoice(Frame theParentFrame)
      Creates new dialog.
      Parameters:
      theParentFrame - Parent frame of dialog.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Checks to see if the OK or Cancel buttons were pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggered this function.
    • fileType

      public int fileType()
      Returns whether analyze, interfile, or nifti
      Returns:
      whether analyze, interfile, or nifti
    • zerofunused

      public boolean zerofunused()
    • okayPressed

      public boolean okayPressed()
      Was the okay button pressed.
      Returns:
      boolean was okay pressed
    • init

      private void init()
      Creates and displays dialog.