Package gov.nih.mipav.view
Class ViewJFrameDICOMQuery
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
gov.nih.mipav.view.ViewJFrameDICOMQuery
- All Implemented Interfaces:
ActionListener,ComponentListener,FocusListener,MouseListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,ListSelectionListener,RootPaneContainer,WindowConstants
public class ViewJFrameDICOMQuery
extends JFrame
implements ActionListener, ListSelectionListener, MouseListener, ChangeListener, ComponentListener, WindowListener, FocusListener
GUI for DICOM Query and retreival from DICOM compliant servers. There are three tabbed panels in the GUI. The first
one is DICOM Query Panel. It has a panel for entering the query information, a panel for setting the dates of the
query, a table that displays the results of the query, and a table that displays the status of any move requests. The
user may either double click on the query table, hit the "Send Query" button, or hit the "Down" button to send a
query to the next level. To go up a level, the user can click the "Up" button. To move an image from any level, the
user can select the item to move on and click the "Move Image" button. At the images level, double clicking on an
image will move that image. When a move request is sent, it is put in a separate thread. That thread updates the
message table as to the progress of the move request.
- Version:
- 1.0
- Author:
- Neva Cherniavsky, Matthew McAuliffe, Ph.D.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classSimple class to support move requests.Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JPanelprivate JButtonButtons used for the host tabprivate JButtonDOCUMENT ME!private JButtonButtons used for the host tabprivate JButtonDOCUMENT ME!private JButtonDOCUMENT ME!private JButtonButtons used for the host tabprivate JLabelDOCUMENT ME!private static final intDOCUMENT ME!private JButtonDOCUMENT ME!private JButtonButtons used for the host tabprivate DICOM_QueryDOCUMENT ME!private JButtonDOCUMENT ME!private JButtonDOCUMENT ME!private JButtonButtons used for the host tabprivate CalendarDOCUMENT ME!private JComboBoxDOCUMENT ME!private JComboBoxDOCUMENT ME!private JComboBoxDOCUMENT ME!private static final FontDOCUMENT ME!private static final FontDOCUMENT ME!private JButtonButtons used for the host tabprivate JButtonButtons used for the host tabprivate JButtonButtons used for the host tabprivate JButtonButtons used for the host tabprivate static final intDOCUMENT ME!private JPanelDOCUMENT ME!private DICOMDisplayerDOCUMENT ME!private static final DimensionDOCUMENT ME!private static final String[]DOCUMENT ME!private JButtonDOCUMENT ME!DOCUMENT ME!private static final intDOCUMENT ME!private JTextFieldDOCUMENT ME!private JTextFieldDOCUMENT ME!private JTextFieldDOCUMENT ME!private JLabelDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private DICOM_PDUServiceDOCUMENT ME!private JTableDOCUMENT ME!private ViewTableModelDOCUMENT ME!private JButtonDOCUMENT ME!private JPanelDOCUMENT ME!private JButtonDOCUMENT ME!private JButtonDOCUMENT ME!private JComboBoxDOCUMENT ME!private ViewTableModelDOCUMENT ME!private final JPanelprivate ThreadDOCUMENT ME!private JButtonDOCUMENT ME!private JTextAreaDOCUMENT ME!private JTableDOCUMENT ME!private static final longUse serialVersionUID for interoperability.private static final intDOCUMENT ME!private StringDOCUMENT ME!private ViewTableModelDOCUMENT ME!private JTableDOCUMENT ME!private JButtonButtons used for the host tabprivate JButtonButtons used for the host tabprivate StringDOCUMENT ME!private JTextFieldDOCUMENT ME!private CalendarDOCUMENT ME!private JComboBoxDOCUMENT ME!private JComboBoxDOCUMENT ME!private JComboBoxDOCUMENT ME!private ViewTableModelDOCUMENT ME!private JTableDOCUMENT ME!private static final intDOCUMENT ME!private StringDOCUMENT ME!private JTextFieldDOCUMENT ME!private JPanelDOCUMENT ME!private JTabbedPaneDOCUMENT ME!private JButtonDOCUMENT ME!private JTextAreaDOCUMENT ME!private CalendarDOCUMENT ME!private DICOM_UID[]DOCUMENT ME!private JButtonDOCUMENT ME!private JButtonDOCUMENT ME!private static final ViewUserInterfaceFields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionConstructs three tabbed panels - DICOM Query, Host and Help panels. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Calls various methods depending on the action.private voidvoidappendSendMessage(String appMessage) Appends the text area with the message.private CalendarassignCalendar(Calendar sourceC, Calendar targetC) Assign source Calendar to target calendar.private JPanelBuilds the panel that designed for inputing study duration information.private voidConstructs the helping manual in the help panel - one of the three panels in the tabbed panel.private JPanelBuilds the host panel by calling methods to build the server and storage panels.private JLabelbuildLabel(String s) Builds the label for the textField, try to standardize the label appearance in the GUI.private JPanelBuilds the listing panel.private JPanelConstruct the Query retrieval message panel.private JPanelConstructs the patient information input panel.private JPanelBuilds the DICOM Query panel, one of the three tabbed Panels in the DICOMQuery GUI.private JRadioButtonbuildRadioButton(String s, boolean flag) Constructs the radio button for fast input of study date range.private final JPanelBuilds the host panel by calling methods to build the server and storage panels.private JPanelBuilds the panel that contains the server table and four buttons.private JPanelBuilds the panel that contains the storage table and four buttons.private JPanelConstructs the panel that contains the query result table.private TitledBorderConstructs the titled border for the panel.booleanCancels pending moves.booleanCancels pending query.private CalendarcheckCalendar(Calendar date) To check if the date is a valid date in the calendar.private booleancheckDate(int year, int month, int day, boolean start) Checks the date to be sure the user didn't enter the start after the end.voidcomponentHidden(ComponentEvent event) DOCUMENT ME!voidcomponentMoved(ComponentEvent event) DOCUMENT ME!voidcomponentResized(ComponentEvent event) Does not allow component to be smaller than MINIMUM_SIZE.voidcomponentShown(ComponentEvent event) DOCUMENT ME!private CalendarcopyOfCalendar(Calendar date) Constructs and new class and copy the year, month, day paramenters.voiddisplayQueryResults(int type) Displays the query results.private intendOfMonth(Calendar tmp) Calculates the last date of the month.voidfocusGained(FocusEvent event) Unchanged.voidfocusLost(FocusEvent event) When the user clicks the mouse out of a text field, resets the neccessary variables.private CalendargetDaysBefore(Calendar date, int num) Returns the new date of num days before date.private CalendarGets all the ending date of the patient's study from the all three comboboxes.private intGets the ending day of the study in the endDayBox combobox.private intGets the ending month of the study in the endMonthBox combobox.private intGets the ending year of the study in the endYearBox combobox.private String[]getFiles(int[] rows) private CalendargetMonthsBefore(Calendar tmp, int num) Returns the new date of num months before date.private StringGets the physician's name from the physText field.private StringgetPtID()Gets the Patient's ID from the ptIDText field.private StringGets the Patient name from the ptNameText field.private CalendarGets all the starting date of the patient's study from the all three comboboxes.private intGets the starting day of the study in the startDayBox combobox.private intGets the starting Month of the study in the startMonthBox combobox.private intGets the starting year of the study in the startYearBox combobox.private StringGets the study id from the studyNOText field.private CalendargetYearsBefore(Calendar tmp, int num) Returns the new date of num years before date.private intitemToInteger(Object item) Converts the combo box item to its corresponding integer.private StringFinds the last name of the current patient.private StringmakeString(String[] stuff) Makes the .preferences string out of the array.voidWhen the user double clicks on a selection, sends a query at the next query level; when the user clicks on a header, sorts the column.voidDOCUMENT ME!voidDOCUMENT ME!voidDOCUMENT ME!voidDOCUMENT ME!private StringoriginalName(String name) Transforms the name from the usual form to the DICOM form.private StringTransforms the name from the DICOM form to a more usual form.private voidsendMoveRequest(int type) Sends a move request at the current level, setting up the data objects appropriately.private voidsendQuery(int type) This method sets up the information for the DICOM query depending on the type, sends the query, and parses the information that the server sends back.private voidSets the columns of the query table to certain values.private voidsetEnabled(JButton button, boolean enabled) Sets the specified button to enabled or disabled, depending on the boolean parameter.private voidsetEndCalendar(Calendar date) Set the end calendar.private voidsetEndDay(int day) Sets the end day.private voidsetEndMonth(int month) Sets the end month.private voidsetEndYear(int year) Sets the end year.private GridBagConstraintssetGBC(int x, int y, int w, int h) A helper method for adding a component using GridBagLayout, so we don't have to set up the x, y, width, and height over and over again.private voidsetStartCalendar(Calendar date) Sets the start calender to the calendar given.private voidsetStartDay(int day) Displays the starting day in the startDayBox combobox.private voidsetStartMonth(int month) Displays the starting month in the startMonthBox combobox.private voidsetStartYear(int year) Displays the starting year in the startYearBox combobox.private GridBagConstraintsSets up the gridbag layout of the combo boxes.private GridBagConstraintsSets up the gridBagLayout of the textField label.private booleanSets ups the send file listing.private voidUpdate Send tab to reflect any changes in hosts.private GridBagConstraintsSets up the gridbaglayout of the textField.private voidsort(ViewTableModel model, int col, boolean reverse) Sorts the column of the table model.voidChangeListener************************************************************************* /** Sets values based on knob along slider.voidA List Selection Listener event for changes in the tables.voidwindowActivated(WindowEvent event) Unchanged.voidwindowClosed(WindowEvent event) Unchanged.voidwindowClosing(WindowEvent event) Closes frame is requested.voidwindowDeactivated(WindowEvent event) Unchanged.voidwindowDeiconified(WindowEvent event) Unchanged.voidwindowIconified(WindowEvent event) Unchanged.voidwindowOpened(WindowEvent event) Unchanged.Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
DEFAULT_MIN_YEAR
private static final int DEFAULT_MIN_YEARDOCUMENT ME!- See Also:
-
PATIENT_LEVEL
private static final int PATIENT_LEVELDOCUMENT ME!- See Also:
-
STUDY_LEVEL
private static final int STUDY_LEVELDOCUMENT ME!- See Also:
-
SERIES_LEVEL
private static final int SERIES_LEVELDOCUMENT ME!- See Also:
-
IMAGE_LEVEL
private static final int IMAGE_LEVELDOCUMENT ME!- See Also:
-
MINIMUM_SIZE
DOCUMENT ME! -
browseButton
DOCUMENT ME! -
currentDateL
DOCUMENT ME! -
dicomQuery
DOCUMENT ME! -
endYearBox
DOCUMENT ME! -
endMonthBox
DOCUMENT ME! -
endDayBox
DOCUMENT ME! -
font12
DOCUMENT ME! -
font12B
DOCUMENT ME! -
listPanel
DOCUMENT ME! -
messageTable
DOCUMENT ME! -
monthString
DOCUMENT ME! -
moveRequestHash
DOCUMENT ME! -
ptNameText
DOCUMENT ME! -
ptIDText
DOCUMENT ME! -
studyNOText
DOCUMENT ME! -
physText
DOCUMENT ME! -
queryLev
DOCUMENT ME! -
queryLevel
private int queryLevelDOCUMENT ME! -
queryMsgID
private int queryMsgIDDOCUMENT ME! -
aboutPanel
-
queryPDU
DOCUMENT ME! -
queryResultTable
DOCUMENT ME! -
queryTableModel
DOCUMENT ME! -
refreshButton
DOCUMENT ME! -
rootQueryPanel
DOCUMENT ME! -
sendButton
DOCUMENT ME! -
sendDestCBox
DOCUMENT ME! -
sendModel
DOCUMENT ME! -
sendQueryThread
DOCUMENT ME! -
sendStatusClearButton
DOCUMENT ME! -
sendStatusTArea
DOCUMENT ME! -
sendTable
DOCUMENT ME! -
seriesInstanceUID
DOCUMENT ME! -
serverModel
DOCUMENT ME! -
serverTable
DOCUMENT ME! -
set
Buttons used for the host tab -
activateStore
Buttons used for the host tab -
createStore
Buttons used for the host tab -
editStore
Buttons used for the host tab -
deleteStore
Buttons used for the host tab -
setStore
Buttons used for the host tab -
cancel
Buttons used for the host tab -
help1
Buttons used for the host tab -
help2
Buttons used for the host tab -
help3
Buttons used for the host tab -
help4
Buttons used for the host tab -
SOPInstanceUID
DOCUMENT ME! -
sourceTextF
DOCUMENT ME! -
startCalendar
DOCUMENT ME! -
endCalendar
DOCUMENT ME! -
todayCalendar
DOCUMENT ME! -
startYearBox
DOCUMENT ME! -
startMonthBox
DOCUMENT ME! -
startDayBox
DOCUMENT ME! -
storageModel
DOCUMENT ME! -
storageTable
DOCUMENT ME! -
studyInstanceUID
DOCUMENT ME! -
subQueryPanel
DOCUMENT ME! -
tabbedPane
DOCUMENT ME! -
testButton
DOCUMENT ME! -
textArea
DOCUMENT ME! -
uids
DOCUMENT ME! -
up
DOCUMENT ME! -
down
DOCUMENT ME! -
cancelQ
DOCUMENT ME! -
send
DOCUMENT ME! -
move
DOCUMENT ME! -
create
DOCUMENT ME! -
edit
DOCUMENT ME! -
delete
DOCUMENT ME! -
upDirButton
DOCUMENT ME! -
sendPanel
-
userInterface
-
-
Constructor Details
-
ViewJFrameDICOMQuery
public ViewJFrameDICOMQuery()Constructs three tabbed panels - DICOM Query, Host and Help panels.
-
-
Method Details
-
actionPerformed
Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
event- event that triggered function
-
getFiles
-
addFiles
-
appendSendMessage
Appends the text area with the message.- Parameters:
appMessage- the message
-
cancelPendingMoves
public boolean cancelPendingMoves()Cancels pending moves.- Returns:
- DOCUMENT ME!
-
cancelPendingQuery
public boolean cancelPendingQuery()Cancels pending query.- Returns:
- DOCUMENT ME!
-
componentHidden
DOCUMENT ME!- Specified by:
componentHiddenin interfaceComponentListener- Parameters:
event- DOCUMENT ME!
-
componentMoved
DOCUMENT ME!- Specified by:
componentMovedin interfaceComponentListener- Parameters:
event- DOCUMENT ME!
-
componentResized
Does not allow component to be smaller than MINIMUM_SIZE.- Specified by:
componentResizedin interfaceComponentListener- Parameters:
event- event that triggered this method
-
componentShown
DOCUMENT ME!- Specified by:
componentShownin interfaceComponentListener- Parameters:
event- DOCUMENT ME!
-
displayQueryResults
public void displayQueryResults(int type) Displays the query results.- Parameters:
type- indicates the query level
-
focusGained
Unchanged.- Specified by:
focusGainedin interfaceFocusListener- Parameters:
event- DOCUMENT ME!
-
focusLost
When the user clicks the mouse out of a text field, resets the neccessary variables.- Specified by:
focusLostin interfaceFocusListener- Parameters:
event- event that triggers this function
-
mouseClicked
When the user double clicks on a selection, sends a query at the next query level; when the user clicks on a header, sorts the column.- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
e- event that triggered this method
-
mouseEntered
DOCUMENT ME!- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
e- DOCUMENT ME!
-
mouseExited
DOCUMENT ME!- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
e- DOCUMENT ME!
-
mousePressed
DOCUMENT ME!- Specified by:
mousePressedin interfaceMouseListener- Parameters:
e- DOCUMENT ME!
-
mouseReleased
DOCUMENT ME!- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
e- DOCUMENT ME!
-
stateChanged
ChangeListener************************************************************************* /** Sets values based on knob along slider.- Specified by:
stateChangedin interfaceChangeListener- Parameters:
e- DOCUMENT ME! event that triggered this function
-
valueChanged
A List Selection Listener event for changes in the tables. If this is the query table, it will enable the down and move images buttons and set up the UIDs for querying. If this is the server or storage table, it will enable the edit, delete, and set as default buttons.- Specified by:
valueChangedin interfaceListSelectionListener- Parameters:
e- event that triggered this method.
-
windowActivated
Unchanged.- Specified by:
windowActivatedin interfaceWindowListener- Parameters:
event- DOCUMENT ME!
-
windowClosed
Unchanged.- Specified by:
windowClosedin interfaceWindowListener- Parameters:
event- DOCUMENT ME!
-
windowClosing
Closes frame is requested. The user is notified if there are any pending image move requests. The user is able to- Specified by:
windowClosingin interfaceWindowListener- Parameters:
event- event that triggered this function
-
windowDeactivated
Unchanged.- Specified by:
windowDeactivatedin interfaceWindowListener- Parameters:
event- DOCUMENT ME!
-
windowDeiconified
Unchanged.- Specified by:
windowDeiconifiedin interfaceWindowListener- Parameters:
event- DOCUMENT ME!
-
windowIconified
Unchanged.- Specified by:
windowIconifiedin interfaceWindowListener- Parameters:
event- DOCUMENT ME!
-
windowOpened
Unchanged.- Specified by:
windowOpenedin interfaceWindowListener- Parameters:
event- DOCUMENT ME!
-
assignCalendar
Assign source Calendar to target calendar.- Parameters:
sourceC- The source calendartargetC- The target calendar that will copy the values of the source Calendar.- Returns:
- The target calendar.
-
buildDatePanel
Builds the panel that designed for inputing study duration information. It contains a panel of radiobuttons, and two rows of pull down boxes to facilitate the input of information.- Returns:
- The constructed panel.
-
buildHelpText
private void buildHelpText()Constructs the helping manual in the help panel - one of the three panels in the tabbed panel. Reads the help information from a file "DICOMhelp.txt" that should be in the classpath. If it is not, throws up an error message and displays nothing in the tabbed pane. -
buildHostPanel
Builds the host panel by calling methods to build the server and storage panels.- Returns:
- the panel containing the hosts
-
buildLabel
Builds the label for the textField, try to standardize the label appearance in the GUI.- Parameters:
s- a string which encode the name of the label- Returns:
- the constructed label.
-
buildListingPanel
Builds the listing panel.- Returns:
- the server panel
-
buildMessagePanel
Construct the Query retrieval message panel. It contains a table for displaying the information.- Returns:
- The constructed panel.
-
buildPtInfoPanel
Constructs the patient information input panel.- Returns:
- the constructed panel.
-
buildQueryPanel
Builds the DICOM Query panel, one of the three tabbed Panels in the DICOMQuery GUI. Inside, there are three different elements: The patient information panel - patient name, ID, study dates ... The Query result panel - display the result of the query The message area - display the status of the query- Returns:
- the DICOM Query Panel which contains the patient info and query result
-
buildRadioButton
Constructs the radio button for fast input of study date range.- Parameters:
s- The name of the radio button: today, one week, one month ...flag- Whether the radio button is active by default or not.- Returns:
- The constructed radio button with appropriated attributes attached.
-
buildSendPanel
Builds the host panel by calling methods to build the server and storage panels.- Returns:
- the panel containing
-
buildServerPanel
Builds the panel that contains the server table and four buttons. The server table consists of five columns with information the user needs to query the server. The buttons are "Create", which creates a new server; "Edit", which edits the currently selected server; "Delete", which deletes the currently selected server; and "Set As Default", which sets the current server as default. To get the data in the table, the table model reads the .preferences file and parses the data. When changes are made, they are saved to the .preferences file.- Returns:
- the server panel
-
buildStoragePanel
Builds the panel that contains the storage table and four buttons. The storage table consists of five columns with information the user needs to move images. The buttons are "Create", which creates a new destination; "Edit", which edits the currently selected destination; "Delete", which deletes the currently selected destination; and "Set As Default", which sets the current destination as default. To get the data in the table, the table model reads the .preferences file and parses the data. When changes are made, they are saved to the .preferences file.- Returns:
- the storage panel
-
buildTextPanel
Constructs the panel that contains the query result table. There are four action-attached buttons to facilitate different levels of query: up, down, send query, and move images. Up moves the query up a level; down moves it down a level; send query sends a query; and move images moves an image or a set of images at that level.- Returns:
- The constructed panel.
-
buildTitledBorder
Constructs the titled border for the panel.- Parameters:
s- a string carried the name of the border- Returns:
- the constructed titled border
-
checkCalendar
To check if the date is a valid date in the calendar.- Parameters:
date- The date to be checked.- Returns:
- The new calendar class with correctd date.
-
checkDate
private boolean checkDate(int year, int month, int day, boolean start) Checks the date to be sure the user didn't enter the start after the end.- Parameters:
year- year of the date to checkmonth- month of the date to checkday- day of the date to checkstart- flag that says if this is the start date or end date- Returns:
- boolean that tells if the date checked out
-
copyOfCalendar
Constructs and new class and copy the year, month, day paramenters.- Parameters:
date- The source Calendar class which will be copied from.- Returns:
- The newly constructed calendar class with the same info as source.
-
endOfMonth
Calculates the last date of the month.- Parameters:
tmp- The calendar to be calculated.- Returns:
- the last date of the month.
-
getDaysBefore
Returns the new date of num days before date.- Parameters:
date- the date to get the days before ofnum- the number of days before- Returns:
- the calendar with the right number of years before
-
getEndCalendar
Gets all the ending date of the patient's study from the all three comboboxes.- Returns:
- a Calendar type stores the ending date information
-
getEndDay
private int getEndDay()Gets the ending day of the study in the endDayBox combobox.- Returns:
- integer: the ending day of the study
-
getEndMonth
private int getEndMonth()Gets the ending month of the study in the endMonthBox combobox.- Returns:
- integer: the ending month of the study
-
getEndYear
private int getEndYear()Gets the ending year of the study in the endYearBox combobox.- Returns:
- integer: the ending year of the study
-
getMonthsBefore
Returns the new date of num months before date.- Parameters:
tmp- the date to get the months before ofnum- the number of months before- Returns:
- the calendar with the right number of months before
-
getPhysName
Gets the physician's name from the physText field.- Returns:
- The string that stores the physician's name.
-
getPtID
Gets the Patient's ID from the ptIDText field.- Returns:
- The string that stores the patient ID.
-
getPtName
Gets the Patient name from the ptNameText field.- Returns:
- The string that contained the patient's name.
-
getStartCalendar
Gets all the starting date of the patient's study from the all three comboboxes.- Returns:
- a Calendar type stores the starting date information
-
getStartDay
private int getStartDay()Gets the starting day of the study in the startDayBox combobox.- Returns:
- integer: the starting day of the study
-
getStartMonth
private int getStartMonth()Gets the starting Month of the study in the startMonthBox combobox.- Returns:
- integer: the starting month of the study
-
getStartYear
private int getStartYear()Gets the starting year of the study in the startYearBox combobox.- Returns:
- integer: the starting year of the study
-
getStudyNo
Gets the study id from the studyNOText field.- Returns:
- The string that stores the study number.
-
getYearsBefore
Returns the new date of num years before date.- Parameters:
tmp- the date to get the years before ofnum- the number of years before- Returns:
- the calendar with the right number of years before
-
itemToInteger
Converts the combo box item to its corresponding integer. Year and date - are numbers as they represented. Month - will be converted to integer, starting with 0 = January,- Parameters:
item- DOCUMENT ME!- Returns:
- The appropriated integer number.
-
lastName
Finds the last name of the current patient.- Parameters:
name- patient's name- Returns:
- the last name
-
makeString
Makes the .preferences string out of the array.- Parameters:
stuff- array to make the string from- Returns:
- the string with the array items separated by semicolons
-
originalName
Transforms the name from the usual form to the DICOM form.- Parameters:
name- the usual name- Returns:
- the DICOM version of the name
-
parseName
Transforms the name from the DICOM form to a more usual form.- Parameters:
name- the original name- Returns:
- the more usual version of the name
-
sendMoveRequest
private void sendMoveRequest(int type) Sends a move request at the current level, setting up the data objects appropriately. It runs the move request in its own thread.- Parameters:
type- type of move request: PATIENT, STUDY, SERIES, or IMAGE.
-
sendQuery
private void sendQuery(int type) This method sets up the information for the DICOM query depending on the type, sends the query, and parses the information that the server sends back. On a study query, it filters out studies before the start date or after the end date.- Parameters:
type- type of query: PATIENT, STUDY, SERIES, or IMAGE.
-
setColumns
private void setColumns()Sets the columns of the query table to certain values. -
setEnabled
Sets the specified button to enabled or disabled, depending on the boolean parameter.- Parameters:
button- button to setenabled- true is enabled, false if disabled
-
setEndCalendar
Set the end calendar.- Parameters:
date- date to set it to
-
setEndDay
private void setEndDay(int day) Sets the end day.- Parameters:
day- day to set it to
-
setEndMonth
private void setEndMonth(int month) Sets the end month.- Parameters:
month- month to set it to
-
setEndYear
private void setEndYear(int year) Sets the end year.- Parameters:
year- year to set it to
-
setGBC
A helper method for adding a component using GridBagLayout, so we don't have to set up the x, y, width, and height over and over again.- Parameters:
x- GridBagConstraints.gridxy- GridBagConstraints.gridyw- GridBagContraints.gridwidthh- GridBagConstraints.gridheight- Returns:
- the grid bag constraints
- See Also:
-
setStartCalendar
Sets the start calender to the calendar given.- Parameters:
date- calendar to set it to
-
setStartDay
private void setStartDay(int day) Displays the starting day in the startDayBox combobox.- Parameters:
day- an integer of the starting date: day
-
setStartMonth
private void setStartMonth(int month) Displays the starting month in the startMonthBox combobox.- Parameters:
month- an integer of the starting date: month
-
setStartYear
private void setStartYear(int year) Displays the starting year in the startYearBox combobox.- Parameters:
year- an integer of the starting date: year
-
setupComboBoxLayout
Sets up the gridbag layout of the combo boxes.- Returns:
- The gbc for the combo boxes
-
setupLabelLayout
Sets up the gridBagLayout of the textField label.- Returns:
- the gbc layout for label
-
setupSendFileListing
Sets ups the send file listing.- Parameters:
dir- the directory from which to build the listing- Returns:
- DOCUMENT ME!
-
setupSendTab
private void setupSendTab()Update Send tab to reflect any changes in hosts. -
setupTextFieldLayout
Sets up the gridbaglayout of the textField.- Returns:
- The gbc layout for the text field.
-
sort
Sorts the column of the table model. If reverse is true, sorts in reverse order.- Parameters:
model- table model to sort oncol- column to sort onreverse- whether or not to sort in reverse order.
-