Class StuMan.StudyMan
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class StuMan.StudyMan

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----Panel
                           |
                           +----StuMan.StudyMan

public class StudyMan
extends Panel
This class contains the study browser. A tree shows the study/series/instance information hierarchically. The user can modify the shown information with checkboxes on the bottom left corner. Instances or presentation states can be loaded with a double-click on an list entry or with selecting and using the "Load"-button (the viewer will be shown automatically). They can also be sent to other workstations with the "Sent-To"-button. Further, studies/series/instances (and Presentation states) can be deleted.

Author:
Andreas Schroeter
Since:
30.04.1999

Variable Index

 o dvi
The Interface class
 o instance
an instance of this class
 o suspendThread
pause the update-thread?

Constructor Index

 o StuMan.StudyMan(jDVInterface, DICOMscope, ViewInterface, Statusline)
constructor, sets up the panel

Method Index

 o LoadAll(boolean)
Loads the Studies, series and instances.
 o OnDelete()
called after the delete button was clicked.
 o OnLoad()
called after the load button was clicked.
 o OnLoadFile()
called if the load-file button was clicked.
 o OnSend()
called after the SendTo button was clicked.
 o addNotify()
call parent's notify
 o getSelectedTreeElement()
Gets the selected tree element
 o selectPState(TreeElement, String, String, String)
Selects a PState for a loaded image.
 o setVisible(boolean)
Shows or hides the component depending on the boolean flag b.
 o startThread()
Starts the Thread
 o toReadableDate(String)
Corrects the given date (yyyymmdd) to a "readable" date (mm/dd/yyyy).
 o toReadableTime(String)
Corrects the given time (hhmmss) to a "readable" time (hh:mm).

Variables

 o dvi
protected J2Ci.jDVInterface dvi
The Interface class

 o instance
public static StuMan.StudyMan instance
an instance of this class

 o suspendThread
public boolean suspendThread
pause the update-thread?

Constructors

 o StudyMan
public StudyMan(jDVInterface dvi,
                DICOMscope parent,
                ViewInterface viewInterface,
                Statusline sl)
constructor, sets up the panel

Parameters:
dvi - the Interface to the DICOMtoolkit
parent - parent frame
viewInterface - reference to the viewer
sl - reference to the statusbar
Since:
30.03

Methods

 o LoadAll
public void LoadAll(boolean reloadAll)
Loads the Studies, series and instances.

Parameters:
reloadAll - true to load new and old element, false to load only new element.
Since:
30.03
 o OnDelete
public void OnDelete()
called after the delete button was clicked. Deletes all studies, one study/series or instance/presentation state.

Since:
30.03
 o OnLoad
public void OnLoad()
called after the load button was clicked. This method loads the selected instance or presentation state. If an instance was selected that have at least one presentation state, a dialog box will appear. In this box you may select a presentation state or the default state. Then the viewer will be shown with the loaded instance / presentation state.

Since:
30.03
 o OnLoadFile
public void OnLoadFile()
called if the load-file button was clicked. A File-Open-Dialog wil appear and ask for a filename from the dicom file. Then another FileOpen Dialogbox will appear to ask for a presentation state file. You may click on Cancel to load no presentation state. After a successful load the viewer is shown with the loaded image.

Since:
30.03
 o OnSend
public void OnSend()
called after the SendTo button was clicked. A list box will appear to select the destination workstation to send the selected study/series/instance/presentation state to. Details can be requested with the Detail button.

Since:
30.03
 o addNotify
public void addNotify()
call parent's notify

Overrides:
addNotify in class Panel
Since:
30.03
 o getSelectedTreeElement
protected StuMan.TreeElement getSelectedTreeElement()
Gets the selected tree element

Returns:
the tree element
Since:
30.03
 o selectPState
public int selectPState(TreeElement te,
                        String instanceUID,
                        String seriesUID,
                        String studyUID)
Selects a PState for a loaded image.

Parameters:
te - the selected Tree element
instanceUID - the instance UID
seriesUID - series UID
studyUID - study UID
Since:
30.03
 o setVisible
public void setVisible(boolean b)
Shows or hides the component depending on the boolean flag b.

Parameters:
b - if true, show the component
Overrides:
setVisible in class Component
Since:
30.03
See Also:
isVisible
 o startThread
public void startThread()
Starts the Thread

Since:
30.03
 o toReadableDate
protected java.lang.String toReadableDate(String ddate)
Corrects the given date (yyyymmdd) to a "readable" date (mm/dd/yyyy). if the year is 2 digits long, the output will be "mm/dd/yy".

Parameters:
ddate - a date to correct
Returns:
the corrected date
Since:
30.03
 o toReadableTime
protected java.lang.String toReadableTime(String dtime)
Corrects the given time (hhmmss) to a "readable" time (hh:mm).

Parameters:
dtime - a time to correct.
Returns:
the corrected time
Since:
30.03

All Packages  Class Hierarchy  This Package  Previous  Next  Index