public class DicomDirectoryBrowser extends Object
Constructor and Description |
---|
DicomDirectoryBrowser(AttributeList list,
String parentFilePath) |
DicomDirectoryBrowser(AttributeList list,
String parentFilePath,
JFrame frame) |
DicomDirectoryBrowser(AttributeList list,
String parentFilePath,
JScrollPane treeBrowserScrollPane,
JScrollPane attributeBrowserScrollPane) |
Modifier and Type | Method and Description |
---|---|
protected MouseListener |
buildMouseListenerToDetectDoubleClickEvents() |
protected TreeSelectionListener |
buildTreeSelectionListenerToDisplayAttributesOfSelectedRecord(JScrollPane attributeBrowserScrollPane) |
protected TreeSelectionListener |
buildTreeSelectionListenerToDoSomethingWithSelectedFiles(String parentFilePath) |
protected HashSet<AttributeTag> |
chooseExcludeList(DicomDirectoryRecord dirRecord) |
protected void |
createExcludeLists() |
protected void |
doSomethingMoreWithWhateverWasSelected() |
protected void |
doSomethingWithSelectedFiles(Vector paths) |
DicomDirectory |
getDicomDirectory()
Get this directory, initializing any structures necessary.
|
String |
getParentFilePath() |
static void |
main(String[] arg) |
protected void |
setFont(Font font) |
public DicomDirectoryBrowser(AttributeList list, 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, String parentFilePath, 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, String parentFilePath, JScrollPane treeBrowserScrollPane, 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 MouseListener buildMouseListenerToDetectDoubleClickEvents()
protected TreeSelectionListener buildTreeSelectionListenerToDisplayAttributesOfSelectedRecord(JScrollPane attributeBrowserScrollPane)
attributeBrowserScrollPane
- where to display the attributes of the selected recordprotected TreeSelectionListener buildTreeSelectionListenerToDoSomethingWithSelectedFiles(String parentFilePath)
parentFilePath
- parent directory at which DICOMDIR file paths are rootedprotected 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(Vector paths)
paths
- the file paths selectedpublic DicomDirectory getDicomDirectory()
Get this directory, initializing any structures necessary.
public String getParentFilePath()
public static void main(String[] arg)
arg
- a DICOMDIR fileprotected void setFont(Font font)
font
- font to use