|
|||||||||
| 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.Dialog
javax.swing.JDialog
org.fhcrc.cpl.viewer.quant.gui.QuantitationReviewer
public class QuantitationReviewer
This is the main GUI screen for Qurate. It uses SwiXML for the menu and for the broad outlines, but most of it is done right here.
| Nested Class Summary | |
|---|---|
protected class |
QuantitationReviewer.CreateChartsAction
"Create Charts" in the File menu. |
class |
QuantitationReviewer.EventSummaryTableListSelectionHandler
display the properties for the selected event, if only one's selected |
protected class |
QuantitationReviewer.ExitAction
Action to quit |
protected class |
QuantitationReviewer.FilterPepXMLAction
Action to remove bad events and IDs from the file they came from. |
static class |
QuantitationReviewer.HelpAction
Display help from static help file |
protected class |
QuantitationReviewer.LeftPanelResizeListener
Manually manage the size of the properties table |
protected class |
QuantitationReviewer.OpenFileAction
Open a tsv file |
protected class |
QuantitationReviewer.ProteinSelectedActionListener
|
protected class |
QuantitationReviewer.ProteinSummaryAction
|
protected class |
QuantitationReviewer.RightPanelResizeListener
Manually manage the size of the multi-chart panel |
protected class |
QuantitationReviewer.SaveAction
Save changes back to the file we opened TODO: allow saving to different file? |
protected class |
QuantitationReviewer.SummaryChartsAction
Display chart dialog |
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
javax.swing.JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
java.awt.Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log
|
javax.swing.Action |
aboutAction
|
protected javax.swing.JTextField |
assessmentDescTextField
|
javax.swing.JPanel |
assessmentPanel
|
protected javax.swing.JTextField |
assessmentTypeTextField
|
protected int |
chartPaneHeight
|
protected javax.swing.JTextField |
commentTextField
|
javax.swing.JPanel |
contentPanel
|
javax.swing.Action |
createChartsAction
|
javax.swing.JPanel |
curationPanel
|
protected int |
displayedEventIndex
|
protected java.awt.Frame |
eventSummaryFrame
|
protected QuantEventsSummaryTable |
eventSummaryTable
|
javax.swing.Action |
exitAction
|
javax.swing.Action |
filterPepXMLAction
|
protected javax.swing.JButton |
filterPepXMLButton
|
protected int |
fullHeight
|
protected int |
fullWidth
|
javax.swing.Action |
helpAction
|
protected javax.swing.ButtonGroup |
idCurationButtonGroup
|
protected int |
imagePanelWidth
|
javax.swing.JPanel |
leftPanel
|
protected int |
leftPanelWidth
|
javax.swing.JLabel |
messageLabel
|
protected TabbedMultiChartDisplayPanel |
multiChartDisplay
|
javax.swing.JPanel |
navigationPanel
|
protected javax.swing.JRadioButton |
onePeakRatioRadioButton
|
javax.swing.Action |
openFileAction
|
protected int |
propertiesHeight
|
protected javax.swing.JScrollPane |
propertiesScrollPane
|
protected QuantEvent.QuantEventPropertiesTable |
propertiesTable
|
protected int |
propertiesWidth
|
javax.swing.Action |
proteinSummaryAction
|
protected ProteinSummarySelectorFrame |
proteinSummarySelector
|
protected javax.swing.ButtonGroup |
quantCurationButtonGroup
|
protected java.io.File |
quantFile
|
protected ProteinQuantSummaryFrame |
quantSummaryFrame
|
javax.swing.JPanel |
rightPanel
|
protected int |
rightPanelWidth
|
javax.swing.Action |
saveAction
|
protected javax.swing.JButton |
saveChangesButton
|
ProteinQuantChartsCLM |
settingsCLM
|
protected SplashFrame |
splashFrame
|
protected java.net.URL |
splashImageURL
|
javax.swing.JSplitPane |
splitPane
|
javax.swing.JPanel |
statusPanel
|
javax.swing.Action |
summaryChartsAction
|
protected javax.swing.JFrame |
summaryChartsFrame
|
protected TabbedMultiChartDisplayPanel |
summaryChartsPanel
|
protected PanelWithPeakChart |
theoreticalPeaksChart
|
javax.swing.JPanel |
theoreticalPeaksPanel
|
protected int |
theoreticalPeaksPanelHeight
|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| 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, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
QuantitationReviewer()
No-arg constructor doesn't pop up a file chooser, but it does show splash screen |
|
QuantitationReviewer(boolean showSplash,
boolean showFileOpen)
|
|
QuantitationReviewer(java.io.File quantFile)
|
|
QuantitationReviewer(java.util.List<QuantEvent> quantEvents)
|
|
| Method Summary | |
|---|---|
protected void |
buildSummaryCharts()
Build summary charts for all displayed events. |
void |
buttonBack_actionPerformed(java.awt.event.ActionEvent event)
|
void |
buttonCuration_actionPerformed(java.awt.event.ActionEvent event)
|
void |
buttonForward_actionPerformed(java.awt.event.ActionEvent event)
|
void |
buttonIDCuration_actionPerformed(java.awt.event.ActionEvent event)
|
void |
buttonShowEventSummary_actionPerformed(java.awt.event.ActionEvent event)
|
protected void |
displayCurrentQuantEvent(boolean shouldUpdateTable)
Take care of the charts and the properties panel |
void |
displayQuantEvents(java.util.List<QuantEvent> quantEvents)
|
void |
displayQuantFile(java.io.File quantFile)
|
void |
dispose()
Clean up the windows that might be open |
protected void |
errorMessage(java.lang.String message,
java.lang.Throwable t)
Display a dialog box with info message and stack trace |
static void |
filterBadEventsFromFile(java.util.List<QuantEvent> quantEvents,
java.io.File pepXmlFile,
java.io.File outFile)
Remove all the events the user has designated as 'bad' from the pepXML file they came from TODO: report how many events weren't found |
int |
getDisplayedEventIndex()
|
java.io.File |
getQuantFile()
|
static void |
infoMessage(java.lang.String message)
Display a dialog box with info message |
protected void |
initGUI()
Initialize all GUI components and display the UI |
void |
setDisplayedEventIndex(int displayedEventIndex)
|
void |
setMessage(java.lang.String message)
Set status message. |
void |
setQuantFile(java.io.File quantFile)
|
void |
showProteinQuantSummaryFrame(java.util.List<ProtXmlReader.Protein> proteins)
|
void |
showProteinQuantSummaryFrame(java.util.List<ProtXmlReader.Protein> proteins,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> proteinGenesMap)
|
protected void |
showSplashScreen()
Displays the splash screen. |
protected void |
showTheoreticalPeaks()
Calculate and show theoretical isotopic distribution peaks, with light encroaching on heavy if necessary |
protected void |
updateUIAfterChange(boolean shouldUpdateTable)
Update lots of UI components after a change of quantitation event |
| Methods inherited from class javax.swing.JDialog |
|---|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.awt.Window |
|---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront |
| Methods 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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods 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, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, isOpaque, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.io.File quantFile
protected TabbedMultiChartDisplayPanel multiChartDisplay
protected int displayedEventIndex
public javax.swing.JPanel contentPanel
public javax.swing.JSplitPane splitPane
public javax.swing.JPanel leftPanel
public javax.swing.JPanel rightPanel
public javax.swing.JPanel navigationPanel
public ProteinQuantChartsCLM settingsCLM
protected SplashFrame splashFrame
protected final java.net.URL splashImageURL
public javax.swing.JPanel curationPanel
protected javax.swing.ButtonGroup quantCurationButtonGroup
protected javax.swing.JRadioButton onePeakRatioRadioButton
protected javax.swing.ButtonGroup idCurationButtonGroup
protected javax.swing.JButton saveChangesButton
protected javax.swing.JButton filterPepXMLButton
protected javax.swing.JTextField commentTextField
public javax.swing.JPanel assessmentPanel
protected javax.swing.JTextField assessmentTypeTextField
protected javax.swing.JTextField assessmentDescTextField
protected ProteinQuantSummaryFrame quantSummaryFrame
public javax.swing.JPanel theoreticalPeaksPanel
protected PanelWithPeakChart theoreticalPeaksChart
protected ProteinSummarySelectorFrame proteinSummarySelector
public javax.swing.Action helpAction
public javax.swing.Action exitAction
public javax.swing.Action openFileAction
public javax.swing.Action createChartsAction
public javax.swing.Action saveAction
public javax.swing.Action filterPepXMLAction
public javax.swing.Action proteinSummaryAction
public javax.swing.Action aboutAction
public javax.swing.Action summaryChartsAction
protected QuantEventsSummaryTable eventSummaryTable
protected java.awt.Frame eventSummaryFrame
protected QuantEvent.QuantEventPropertiesTable propertiesTable
protected javax.swing.JScrollPane propertiesScrollPane
public javax.swing.JPanel statusPanel
public javax.swing.JLabel messageLabel
protected int leftPanelWidth
protected int rightPanelWidth
protected int imagePanelWidth
protected int fullWidth
protected int fullHeight
protected int propertiesWidth
protected int propertiesHeight
protected int chartPaneHeight
protected int theoreticalPeaksPanelHeight
protected javax.swing.JFrame summaryChartsFrame
protected TabbedMultiChartDisplayPanel summaryChartsPanel
protected static org.apache.log4j.Logger _log
| Constructor Detail |
|---|
public QuantitationReviewer(boolean showSplash,
boolean showFileOpen)
public QuantitationReviewer()
public QuantitationReviewer(java.util.List<QuantEvent> quantEvents)
public QuantitationReviewer(java.io.File quantFile)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void displayQuantEvents(java.util.List<QuantEvent> quantEvents)
public void displayQuantFile(java.io.File quantFile)
throws java.io.IOException
java.io.IOExceptionprotected void initGUI()
public void buttonBack_actionPerformed(java.awt.event.ActionEvent event)
public void buttonForward_actionPerformed(java.awt.event.ActionEvent event)
public void buttonShowEventSummary_actionPerformed(java.awt.event.ActionEvent event)
public void buttonCuration_actionPerformed(java.awt.event.ActionEvent event)
public void buttonIDCuration_actionPerformed(java.awt.event.ActionEvent event)
protected void buildSummaryCharts()
protected void updateUIAfterChange(boolean shouldUpdateTable)
protected void showTheoreticalPeaks()
protected void displayCurrentQuantEvent(boolean shouldUpdateTable)
shouldUpdateTable - Should we update the events table? Need this to avoid infinite looppublic int getDisplayedEventIndex()
public void setDisplayedEventIndex(int displayedEventIndex)
public static void infoMessage(java.lang.String message)
message -
protected void errorMessage(java.lang.String message,
java.lang.Throwable t)
message - t -
public static void filterBadEventsFromFile(java.util.List<QuantEvent> quantEvents,
java.io.File pepXmlFile,
java.io.File outFile)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
quantEvents - pepXmlFile - outFile -
java.io.IOException
javax.xml.stream.XMLStreamExceptionpublic void setMessage(java.lang.String message)
message - public void showProteinQuantSummaryFrame(java.util.List<ProtXmlReader.Protein> proteins)
public void showProteinQuantSummaryFrame(java.util.List<ProtXmlReader.Protein> proteins,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> proteinGenesMap)
public void dispose()
dispose in class java.awt.Windowpublic java.io.File getQuantFile()
public void setQuantFile(java.io.File quantFile)
protected void showSplashScreen()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||