Class JDialogDEMRI3

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

public class JDialogDEMRI3 extends JDialogScriptableBase implements AlgorithmInterface, ItemListener, WindowListener
Dialog to get user input for 3 parameter dynamic (contrast) enhanced MRI model or DEMRI model
See Also:
  • Field Details

    • labelParamsToFit

      private JLabel labelParamsToFit
      Use serialVersionUID for interoperability.
    • labelContrastRelaxivityRate

      private JLabel labelContrastRelaxivityRate
      DOCUMENT ME!
    • textContrastRelaxivityRate

      private JTextField textContrastRelaxivityRate
    • r1

      double r1
    • r1Min

      double r1Min
    • r1Max

      double r1Max
    • bloodGroup

      private ButtonGroup bloodGroup
    • userSpecifiedBlood

      private boolean userSpecifiedBlood
    • userBloodRadioButton

      private JRadioButton userBloodRadioButton
    • voiBloodRadioButton

      private JRadioButton voiBloodRadioButton
    • labelBloodIntrinsicRelaxivityRate

      private JLabel labelBloodIntrinsicRelaxivityRate
    • labelBloodIntrinsicRelaxivityRate2

      private JLabel labelBloodIntrinsicRelaxivityRate2
    • textBloodIntrinsicRelaxivityRate

      private JTextField textBloodIntrinsicRelaxivityRate
    • rib

      double rib
    • ribMin

      double ribMin
    • ribMax

      double ribMax
    • tissueGroup

      private ButtonGroup tissueGroup
    • CONSTANT_TISSUE

      private int CONSTANT_TISSUE
    • FIRST_VOLUME_TISSUE

      private int FIRST_VOLUME_TISSUE
    • SEPARATE_VOLUME_TISSUE

      private int SEPARATE_VOLUME_TISSUE
    • tissueSource

      private int tissueSource
    • constantTissueRadioButton

      private JRadioButton constantTissueRadioButton
    • firstVolumeTissueRadioButton

      private JRadioButton firstVolumeTissueRadioButton
    • separateVolumeTissueRadioButton

      private JRadioButton separateVolumeTissueRadioButton
    • labelTissueIntrinsicRelaxivityRate

      private JLabel labelTissueIntrinsicRelaxivityRate
    • labelTissueIntrinsicRelaxivityRate2

      private JLabel labelTissueIntrinsicRelaxivityRate2
    • textTissueIntrinsicRelaxivityRate

      private JTextField textTissueIntrinsicRelaxivityRate
    • rit

      double rit
    • ritMin

      double ritMin
    • ritMax

      double ritMax
    • buttonTissueFile

      private JButton buttonTissueFile
    • textTissueFile

      private JTextField textTissueFile
    • r1i

      double[] r1i
    • directoryTissue

      private String directoryTissue
    • fileNameTissue

      private String fileNameTissue
    • tissueImage

      private ModelImage tissueImage
    • labelFlipAngle

      private JLabel labelFlipAngle
    • textFlipAngle

      private JTextField textFlipAngle
    • theta

      double theta
    • thetaMin

      double thetaMin
    • thetaMax

      double thetaMax
    • labelTimeBetweenShots

      private JLabel labelTimeBetweenShots
    • textTimeBetweenShots

      private JTextField textTimeBetweenShots
    • tr

      double tr
    • trMin

      double trMin
    • trMax

      double trMax
    • rateGroup

      private ButtonGroup rateGroup
    • secondButton

      private JRadioButton secondButton
    • minuteButton

      private JRadioButton minuteButton
    • perMin

      boolean perMin
    • labelMp

      private JLabel labelMp
    • buttonMpFile

      private JButton buttonMpFile
    • directoryMp

      private String directoryMp
    • fileNameMp

      private String fileNameMp
    • labelNFirst

      private JLabel labelNFirst
    • textNFirst

      private JTextField textNFirst
    • nFirst

      private int nFirst
    • nFirstMin

      private int nFirstMin
    • nFirstMax

      private int nFirstMax
    • secondParamGroup

      private ButtonGroup secondParamGroup
    • kepButton

      private JRadioButton kepButton
    • veButton

      private JRadioButton veButton
    • useVe

      private boolean useVe
    • VOIs

      private ViewVOIVector VOIs
    • demri3Algo

      private AlgorithmDEMRI3 demri3Algo
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • resultImage

      private ModelImage resultImage
    • labelMinConstr0

      private JLabel labelMinConstr0
    • textMinConstr0

      private JTextField textMinConstr0
    • labelMaxConstr0

      private JLabel labelMaxConstr0
    • textMaxConstr0

      private JTextField textMaxConstr0
    • labelMinConstr1

      private JLabel labelMinConstr1
    • textMinConstr1

      private JTextField textMinConstr1
    • labelMaxConstr1

      private JLabel labelMaxConstr1
    • textMaxConstr1

      private JTextField textMaxConstr1
    • labelMinConstr2

      private JLabel labelMinConstr2
    • textMinConstr2

      private JTextField textMinConstr2
    • labelMaxConstr2

      private JLabel labelMaxConstr2
    • textMaxConstr2

      private JTextField textMaxConstr2
    • min_constr

      private double[] min_constr
    • max_constr

      private double[] max_constr
    • UI

      private ViewUserInterface UI
      DOCUMENT ME!
  • Constructor Details

    • JDialogDEMRI3

      public JDialogDEMRI3(ModelImage image)
      Creates a new JDialogDEMRI3 object.
      Parameters:
      image - DOCUMENT ME!
    • JDialogDEMRI3

      public JDialogDEMRI3(Frame theParentFrame, ModelImage im)
      Creates new dialog.
      Parameters:
      theParentFrame - Parent frame
      im - Source image
  • 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.
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithm when it has completed or failed to to complete, so that the dialog can be display the result image and/or clean up.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • setGUIFromParams

      protected void setGUIFromParams()
      Set up the dialog GUI based on the parameters before running the algorithm as part of a script.
      Specified by:
      setGUIFromParams in class JDialogScriptableBase
    • storeParamsFromGUI

      protected void storeParamsFromGUI() throws ParserException
      Store the parameters from the dialog to record the execution of this algorithm.
      Specified by:
      storeParamsFromGUI in class JDialogScriptableBase
      Throws:
      ParserException - If there is a problem creating one of the new parameters.
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      itemStateChanged.
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class JDialogBase
      Parameters:
      event - DOCUMENT ME!
    • windowClosing

      public void windowClosing(WindowEvent event)
      Disposes of error dialog, then frame. Sets cancelled to true.
      Specified by:
      windowClosing in interface WindowListener
      Overrides:
      windowClosing in class JDialogBase
      Parameters:
      event - DOCUMENT ME!
    • callAlgorithm

      protected void callAlgorithm()
      DOCUMENT ME!
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • init

      private void init()
      Initializes GUI components and displays dialog.
    • setVariables

      private boolean setVariables()
      Use the GUI results to set up the variables needed to run the algorithm.
      Returns:
      true if parameters set successfully, false otherwise.