public class DicomDirectoryBrowser
extends java.lang.Object
Constructor and Description |
---|
DicomDirectoryBrowser(AttributeList list,
java.lang.String parentFilePath) |
DicomDirectoryBrowser(AttributeList list,
java.lang.String parentFilePath,
javax.swing.JFrame frame) |
DicomDirectoryBrowser(AttributeList list,
java.lang.String parentFilePath,
javax.swing.JScrollPane treeBrowserScrollPane,
javax.swing.JScrollPane attributeBrowserScrollPane) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.event.MouseListener |
buildMouseListenerToDetectDoubleClickEvents() |
protected javax.swing.event.TreeSelectionListener |
buildTreeSelectionListenerToDisplayAttributesOfSelectedRecord(javax.swing.JScrollPane attributeBrowserScrollPane) |
protected javax.swing.event.TreeSelectionListener |
buildTreeSelectionListenerToDoSomethingWithSelectedFiles(java.lang.String parentFilePath) |
protected java.util.HashSet<AttributeTag> |
chooseExcludeList(DicomDirectoryRecord dirRecord) |
protected void |
createExcludeLists() |
protected void |
doSomethingMoreWithWhateverWasSelected() |
protected void |
doSomethingWithSelectedFiles(java.util.Vector paths) |
DicomDirectory |
getDicomDirectory()
Get this directory, initializing any structures necessary.
|
java.lang.String |
getParentFilePath() |
static void |
main(java.lang.String[] arg) |
protected void |
setFont(java.awt.Font font) |
public DicomDirectoryBrowser(AttributeList list, java.lang.String parentFilePath) throws DicomException
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)DicomException
- if error in DICOM encodingpublic DicomDirectoryBrowser(AttributeList list, java.lang.String parentFilePath, javax.swing.JFrame frame) throws DicomException
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 browsersDicomException
- if error in DICOM encodingpublic DicomDirectoryBrowser(AttributeList list, java.lang.String parentFilePath, javax.swing.JScrollPane treeBrowserScrollPane, javax.swing.JScrollPane attributeBrowserScrollPane) throws DicomException
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 recordDicomException
- if error in DICOM encodingprotected java.awt.event.MouseListener buildMouseListenerToDetectDoubleClickEvents()
protected javax.swing.event.TreeSelectionListener buildTreeSelectionListenerToDisplayAttributesOfSelectedRecord(javax.swing.JScrollPane attributeBrowserScrollPane)
attributeBrowserScrollPane
- where to display the attributes of the selected recordprotected javax.swing.event.TreeSelectionListener buildTreeSelectionListenerToDoSomethingWithSelectedFiles(java.lang.String parentFilePath)
parentFilePath
- parent directory at which DICOMDIR file paths are rootedprotected java.util.HashSet<AttributeTag> chooseExcludeList(DicomDirectoryRecord dirRecord)
dirRecord
- the directory record for which we need to select an exclude list based on its DirectoryRecordTypeprotected void createExcludeLists()
protected void doSomethingMoreWithWhateverWasSelected()
protected void doSomethingWithSelectedFiles(java.util.Vector paths)
paths
- the file paths selectedpublic DicomDirectory getDicomDirectory()
Get this directory, initializing any structures necessary.
public java.lang.String getParentFilePath()
public static void main(java.lang.String[] arg)
arg
- a DICOMDIR fileprotected void setFont(java.awt.Font font)
font
- font to use