|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
gov.nih.nlm.mms.MetamorphoSysGUI
GUI application for configuring the MetamorphoSys
subsetting
operation. This JFrame
provides the means to completely configure a
subsetting run. The screen is built around a series of tabbed panes for each
configurable thing involved in the processing of a subset. A user can
configure input and ouptut options, as well as configuring the basic three
filters (sources, precedence, suppressibility). Users can enable inactive
filters or import new ones as well, which adds additional tabs with
configuration options.
The application is really a skeletal structure built around the
GUIConfigurable
interface and roughly lets the plugged-in components
decide what the user is to do.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields 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_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
MetamorphoSysGUI(MetamorphoSys mms)
Instantiates a MetamorphoSysGUI and builds the frame. |
Method Summary | |
void |
addSourcesToRemoveListener(SourcesToRemoveListener l)
Adds the specified listener to the list of listeners to be informed when the sources to remove list is changed. |
void |
addTab(GUIConfigurable gc)
Adds a GUIConfigurable to the GUI. |
void |
cancel()
Handles a cancel operation from the progress monitor. |
void |
changeInputStream(MetamorphoSysInputStream input_stream,
JTextField misf,
JPanel content_panel)
Updates the MetamorphoSysInputStream on the gui. |
void |
changeOutputStream(MetamorphoSysOutputStream output_stream,
JTextField mosf,
JPanel content_panel)
Updates the MetamorphoSysOutputStream on the gui. |
void |
checkEnableOptionsMenu()
Enables or disables options menu items for input and output handlers. |
void |
dataChanged(DataChangeEvent e)
Responds to a change in the user configuration for one of the active filters. |
void |
disableGlassPane()
Disable glass pane. |
void |
enableGlassPane()
Enable glass pane. |
protected void |
fireSourcesToRemoveChanged()
Fires a SourcesToRemoveEvent to inform all listening filters to
respond to the change in the sources to exclude list. |
ApplicationConfiguration |
getApplicationConfiguration()
Returns the ApplicationConfiguration . |
Component |
getComponentForTab(GUIConfigurable gui_configurable)
Returns the GUI Component for the specified Filter . |
UserConfiguration |
getUserConfiguration()
Returns the UserConfiguration . |
void |
initialize()
Initializes the GUI. |
void |
initializeGUIConfigurable(GUIConfigurable gc)
Configure the gui aspects of a GUIConfigurable . |
Object[] |
popOffRedoStack()
Removes and returns top tuple off the redo stack. |
Object[] |
popOffUndoStack()
Removes and returns top tuple off the undo stack. |
void |
pushOnRedoStack(Object[] tuple)
Pushes an Object [] tuple onto the redo stack. |
void |
pushOnUndoStack(Object[] tuple)
Pushes an Object [] tuple onto the undo stack. |
void |
removeSourcesToRemoveListener(SourcesToRemoveListener l)
Removes the specfied listener from the list of listeners to be informed when the sources to remove list is changed. |
void |
removeTab(GUIConfigurable gc)
Removes a GUIConfigurable tab from the GUI. |
void |
resetTabTitleForFilter(Filter filter,
String title)
Changes the title of a tab on the XTabbedPane . |
void |
resetTitleForFilter(JPanel panel,
String title)
Changes the title of a JPanel with a compound, titled border. |
void |
selectTabForFilter(GUIConfigurable gc)
Programatically selects the tab in the tabbed pane corresponding to the specified GUIConfigurable . |
void |
setIgnoreEvents(boolean b)
Sets the gui to ignore reponding to ChangeEvent s. |
void |
stateChanged(ChangeEvent e)
Responds to a user switching tabs in the tabbed pane. |
boolean |
validateGUIConfigurables()
Confirms that GUIConfigurable s are in valid states. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Constructor Detail |
public MetamorphoSysGUI(MetamorphoSys mms)
MetamorphoSysGUI
and builds the frame.
mms
- the MetamorphoSys
object, used for configuration should
override settings in the configuration files.Method Detail |
public void initialize()
public void initializeGUIConfigurable(GUIConfigurable gc)
GUIConfigurable
.
gc
- GUIConfigurable
public Object[] popOffUndoStack()
Object
[]
tuple from the undo stackpublic Object[] popOffRedoStack()
Object
[]
tuple from the redo stackpublic void pushOnUndoStack(Object[] tuple)
Object
[]
tuple onto the undo stack.
tuple
- an Object
[]
tuplepublic void pushOnRedoStack(Object[] tuple)
Object
[]
tuple onto the redo stack.
tuple
- an Object
[]
tuplepublic void selectTabForFilter(GUIConfigurable gc)
GUIConfigurable
.
gc
- the specified GUIConfigurable
public Component getComponentForTab(GUIConfigurable gui_configurable)
Component
for the specified Filter
. The
application maintains a private hash map that allows this mapping to take
place. If the map does not contain an entry for the filter, a panel is
built, added to the map and returned.
gui_configurable
- the specified GUIConfigurable
Component
for the specified Filter
.public void addTab(GUIConfigurable gc)
GUIConfigurable
to the GUI. Calls methods to create the gui
configurable component, and to make reset, options and help menu items.
gc
- a GUIConfigurable
to add to the GUI.public void removeTab(GUIConfigurable gc)
GUIConfigurable
tab from the GUI.
gc
- a GUIConfigurable
to remove from the GUI.public boolean validateGUIConfigurables()
GUIConfigurable
s are in valid states. Notifies user
if a GUIConfigurable
is not in a valid state and switches the tab
pane focus to the display for that GUIConfigurable
so that it can
be corrected.
true
if all GUIConfigurable
s are valid
false
if any of the GUIConfigurable
s are
invalidpublic void addSourcesToRemoveListener(SourcesToRemoveListener l)
l
- the SourcesToRemoveListener
public void removeSourcesToRemoveListener(SourcesToRemoveListener l)
l
- the SourcesToRemoveListener
public UserConfiguration getUserConfiguration()
UserConfiguration
.
UserConfiguration
public ApplicationConfiguration getApplicationConfiguration()
ApplicationConfiguration
.
ApplicationConfiguration
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
e
- a ChangeEvent
public void setIgnoreEvents(boolean b)
ChangeEvent
s.
b
- boolean
public void dataChanged(DataChangeEvent e)
dataChanged
in interface DataChangeListener
e
- a DataChangeEvent
protected void fireSourcesToRemoveChanged()
SourcesToRemoveEvent
to inform all listening filters to
respond to the change in the sources to exclude list.
public void checkEnableOptionsMenu()
public void resetTitleForFilter(JPanel panel, String title)
JPanel
with a compound, titled border.
panel
- a JPanel
with a compound, titled bordertitle
- the new titlepublic void resetTabTitleForFilter(Filter filter, String title)
XTabbedPane
.
filter
- Filter
whose tab title will be changedtitle
- the new title for the tabpublic void cancel()
public void changeInputStream(MetamorphoSysInputStream input_stream, JTextField misf, JPanel content_panel)
MetamorphoSysInputStream
on the gui.
input_stream
- MetamorphoSysInputStream
misf
- JTextField
where name of input stream is displayedcontent_panel
- JPanel
associated with the
MetamorphoSysInputStream
public void changeOutputStream(MetamorphoSysOutputStream output_stream, JTextField mosf, JPanel content_panel)
MetamorphoSysOutputStream
on the gui.
output_stream
- MetamorphoSysOutputStream
mosf
- JTextField
where name of output stream is displayedcontent_panel
- JPanel
associated with the
MetamorphoSysOutputStream
public void enableGlassPane()
enableGlassPane
in interface GlassPaneListener
public void disableGlassPane()
disableGlassPane
in interface GlassPaneListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |