Class JDialogFileInfoMincHDF

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

public class JDialogFileInfoMincHDF extends JDialogBase implements ActionListener
See Also:
  • Field Details

  • Constructor Details

    • JDialogFileInfoMincHDF

      public JDialogFileInfoMincHDF(Frame parent, String title)
      Constructs new dialog with given title and parent, non modal.
      Parameters:
      parent - Parent of the dialog.
      title - Title of the dialog.
    • JDialogFileInfoMincHDF

      public JDialogFileInfoMincHDF()
      Default Constructor
  • Method Details

    • displayNodes

      private static void displayNodes(DefaultMutableTreeNode rNode, ViewTableModel model) throws Exception
      Recursively parse and display (to JDialogText) the nodes
      Throws:
      Exception
    • sort

      public static void sort(ViewTableModel model, int col, boolean reverse, boolean isInfoDialog)
      Sort the tag column or name column of the table model. If reverse is true, sorts in reverse order.
      Parameters:
      model - the table model to sort on
      col - column to sort on
      reverse - whether or not to sort in reverse order.
      isInfoDialog - DOCUMENT ME!
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Closes the dialog when the user clicks close and toggles private tags on and off when the user hits the "Show Private" button.

      Brings up a 'Sanitise dialog'--to remove potentially damaging information, like the patient's name, from the image--when user clicks the "Sanitise Image" button.

      Creates editor dialogs to allow changing the value-field of a tag when user clicks "Edit Tag" button. This implmentation supports virtually any number of tag editors, bringing forward any previously opened editor. Most processing occurs when this class hears an editor window close; at that point it checks for "all slices" option in the editor and will alert any open window (frame) to set title as that information may have changed.

      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      e - event that triggered this action
    • displayAboutInfo

      public void displayAboutInfo(ModelImage _image, FileInfoMincHDF _info, int sIndex)
      This method displays all the valid variables, that is, the ones that are no longer equal to their default values. It parses special types as needed and translates other strings. However, this method does not yet translate every single DICOM tag, only those most used. The others it outputs as strings.
      Parameters:
      _image - The image being displayed.
      _info - The fileInfo to be displayed, of type FileInfoDicom.
    • makeEssentialImageInfoTable

      private JTable makeEssentialImageInfoTable()
    • makeDimensionNodeTable

      private JTable makeDimensionNodeTable()
    • makeImageNodeTable

      private JTable makeImageNodeTable()
    • makeInformationNodeTable

      private JTable makeInformationNodeTable()
    • makeDicomNodeTable

      private JTable makeDicomNodeTable()