Class JPanelAnonymizeImage

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class JPanelAnonymizeImage extends JPanelChecklist
Custom panel for anonymizing DICOM images. $Logfile: /mipav/src/gov/nih/mipav/view/JPanelAnonymizeImage.java $ $Revision: 20 $ $Date: 3/02/06 12:09p $
See Also:
  • Field Details

    • serialVersionUID

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

      private FileInfoDicom dicomInfo
      all the tags that contain personal info:.
    • mincInfo

      private FileInfoMinc mincInfo
      DOCUMENT ME!
  • Constructor Details

    • JPanelAnonymizeImage

      public JPanelAnonymizeImage()
      constructor to build a panel allowing user to find which tags are available to anonymize.

      by defualt, sets all checkboxes to enabled. To set the checkboxes to image-specific enabled, use setDicomInfo.

      See Also:
  • Method Details

    • setDicomInfo

      public void setDicomInfo(FileInfoDicom fid)
      allows the checkboxes to be disabled by testing the file info for the tags present.

      this affects the enabled status of the checkboxes in the list by setting the checkbox when it exists in the file info.

      Parameters:
      fid - dicom file info
    • setMincInfo

      public void setMincInfo(FileInfoMinc fim)
      allows the checkboxes to be disabled by testing the file info for the tags present.

      this affects the enabled status of the checkboxes in the list by setting the checkbox when it exists in the file info.

      Parameters:
      fim - minc file info
    • makeCheckboxLabels

      protected String[] makeCheckboxLabels()
      Creates the list of labels to use in the checkboxes.
      Specified by:
      makeCheckboxLabels in class JPanelChecklist
      Returns:
      the list of names held in the DICOM dictionary for the tags' keys held in the list. If a name happens to be unknown for some reason, the value in the list is merely the tag key ID given by FileInfoDicom.anonymizeTagIDs.
      See Also:
    • setListLength

      protected void setListLength()
      made to ensure the listLength gets set.
      Specified by:
      setListLength in class JPanelChecklist
    • findVisibleDicom

      private boolean[] findVisibleDicom()
      only mark a tag to be visible if it exists in the file info.
      Returns:
      the state of existance of each element in the FileInfoDicom in the list of tags.
      Throws:
      NullPointerException - when this classes fileInfoDicom is null.
    • findVisibleMinc

      private boolean[] findVisibleMinc()
      only mark a tag to be visible if it exists in the file info.
      Returns:
      the state of existance of each element in the FileInfoMinc in the list of tags.
      Throws:
      NullPointerException - when this classes fileInfoMinc is null.