Package com.pixelmed.dicom
Class DicomDirectoryBrowser
java.lang.Object
com.pixelmed.dicom.DicomDirectoryBrowser
-
Constructor Summary
ConstructorsConstructorDescriptionDicomDirectoryBrowser
(AttributeList list, String parentFilePath) DicomDirectoryBrowser
(AttributeList list, String parentFilePath, JFrame frame) DicomDirectoryBrowser
(AttributeList list, String parentFilePath, JScrollPane treeBrowserScrollPane, JScrollPane attributeBrowserScrollPane) -
Method Summary
Modifier and TypeMethodDescriptionprotected MouseListener
protected TreeSelectionListener
buildTreeSelectionListenerToDisplayAttributesOfSelectedRecord
(JScrollPane attributeBrowserScrollPane) protected TreeSelectionListener
buildTreeSelectionListenerToDoSomethingWithSelectedFiles
(String parentFilePath) protected HashSet
<AttributeTag> chooseExcludeList
(DicomDirectoryRecord dirRecord) protected void
protected void
protected void
Get this directory, initializing any structures necessary.static void
protected void
-
Constructor Details
-
DicomDirectoryBrowser
- Parameters:
list
- a list of attributes describing a DICOMDIR instanceparentFilePath
- the path to which all ReferencedFileIDs in the DICOMDIR are relative (i.e., the folder in which the DICONDIR is/will be stored)- Throws:
DicomException
- if error in DICOM encoding
-
DicomDirectoryBrowser
public DicomDirectoryBrowser(AttributeList list, String parentFilePath, JScrollPane treeBrowserScrollPane, JScrollPane attributeBrowserScrollPane) throws DicomException - Parameters:
list
- a list of attributes describing a DICOMDIR instanceparentFilePath
- the path to which all ReferencedFileIDs in the DICOMDIR are relative (i.e., the folder in which the DICONDIR is/will be stored)treeBrowserScrollPane
- where to put the tree browser for the directoryattributeBrowserScrollPane
- where to put the attribute browser for a selected record- Throws:
DicomException
- if error in DICOM encoding
-
DicomDirectoryBrowser
public DicomDirectoryBrowser(AttributeList list, String parentFilePath, JFrame frame) throws DicomException - Parameters:
list
- a list of attributes describing a DICOMDIR instanceparentFilePath
- the path to which all ReferencedFileIDs in the DICOMDIR are relative (i.e., the folder in which the DICONDIR is/will be stored)frame
- where to put the browsers- Throws:
DicomException
- if error in DICOM encoding
-
-
Method Details
-
setFont
- Parameters:
font
- font to use
-
buildTreeSelectionListenerToDoSomethingWithSelectedFiles
protected TreeSelectionListener buildTreeSelectionListenerToDoSomethingWithSelectedFiles(String parentFilePath) - Parameters:
parentFilePath
- parent directory at which DICOMDIR file paths are rooted- Returns:
- a TreeSelectionListener
-
buildTreeSelectionListenerToDisplayAttributesOfSelectedRecord
protected TreeSelectionListener buildTreeSelectionListenerToDisplayAttributesOfSelectedRecord(JScrollPane attributeBrowserScrollPane) - Parameters:
attributeBrowserScrollPane
- where to display the attributes of the selected record- Returns:
- a TreeSelectionListener
-
buildMouseListenerToDetectDoubleClickEvents
- Returns:
- a MouseListener to detect double click events
-
chooseExcludeList
- Parameters:
dirRecord
- the directory record for which we need to select an exclude list based on its DirectoryRecordType- Returns:
- the appropriate list of attributes to exclude from display based on DirectoryRecordType, or the defaultExcludeList if DirectoryRecordType unrecognized
-
createExcludeLists
protected void createExcludeLists() -
getDicomDirectory
Get this directory, initializing any structures necessary.
- Returns:
- this directory
-
getParentFilePath
- Returns:
- the parent file path
-
doSomethingWithSelectedFiles
- Parameters:
paths
- the file paths selected
-
doSomethingMoreWithWhateverWasSelected
protected void doSomethingMoreWithWhateverWasSelected() -
main
- Parameters:
arg
- a DICOMDIR file
-