|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--ShowPlotPopup
The class popups a plot window containing one of several types of plots. The plot type is determined by the plotMode parameter and include scatter plots, intensity histograms, ratio histograms, clustergrams, etc. It includes a variable set of control buttons on the bottom depending on what type of plot is being presented.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
private java.awt.Font |
buttonFont
cell label font |
private java.awt.Button |
closeButton
close window button |
(package private) java.lang.String |
defGifFile
default output .gif file name |
(package private) DrawClusterGram |
dwCG
instance of DrawClusterGram if drawing a scatter plot |
(package private) DrawHistogram |
dwH
instance of DrawHistogram if drawing a scatter plot |
(package private) DrawRatioHistogram |
dwRH
instance of DrawRatioHistogram if drawing a scatter plot |
(package private) DrawScatterPlot |
dwSP
instance of DrawScatterPlot if drawing a scatter plot |
(package private) int |
frameHeight
working frame size neight |
(package private) int |
frameWidth
working frame size width |
(package private) int |
histBinMode
Histogram Bind Mode using TH_xx: "= " is 1, "< " is 2, "> " is 3, "<>" is 4, "><" is 5 |
(package private) java.lang.String |
histBinRange
Histogram (intens/ratio) bin range button. |
private java.awt.Button |
histBinRangeButton
histogram (intens/ratio) bin range button |
private java.awt.Scrollbar |
horizLBscr
horizontal LowerBound scrollbar for canvas |
private java.awt.Scrollbar |
horizUBscr
horizontal UpperBound scrollbar for canvas |
(package private) boolean |
logScalingFlag
flag: toggle with Linear/Log button |
private MAExplorer |
mae
link to global MAExplorer instance |
private int |
maxStepsScr
number of prewired scroller steps |
private java.awt.Checkbox |
mouseOverCheckBox
Checkbox to toggle Show "Mouse-over info" |
private java.awt.Button |
nonFilteredGenesButton
non-Filtered genes button |
(package private) boolean |
outsideRangeFlag
flag: toggle if "><" hist range |
(package private) int |
plotMode
Plot mode: one of the mae.PLOT_xxxx values |
(package private) static int |
POPUP_HEIGHT
default frame size height of popup |
(package private) static int |
POPUP_WIDTH
default frame size width of popup |
(package private) java.lang.String |
popupName
ARG: popup name for PopupRegistry |
(package private) int |
popupPropertyBits
ARG: property bius for PopupRegistry |
private java.awt.Button |
reFilterHistButton
reFilterHist/NoreFilterHist button |
(package private) boolean |
reFilterHistFlag
flag: toggle with reFilterHist/NoreFilterHist button |
private java.awt.Button |
saveAsButton
"SaveAs" GIF image button |
private java.awt.Button |
scalingButton
[DEPRICATED] Linear/Log button |
(package private) boolean |
showNonFilteredGenesFlag
flag: toggle non-Filtered genes button |
private java.awt.Panel |
sPanel
Panel that holds scrollable canvas |
(package private) static int |
TH_EQ
threshold Button tests "= " |
(package private) static int |
TH_GT
threshold Button tests "> " |
(package private) static int |
TH_IN
threshold Button tests "<>" |
(package private) static int |
TH_LT
threshold Button tests "< " |
(package private) static int |
TH_OUT
threshold Button tests "><" |
(package private) java.lang.String |
title
ARG: title of popup plot |
private java.awt.Scrollbar |
vertLBscr
vertical LowerBound scrollbar for canvas |
private java.awt.Scrollbar |
vertUBscr
vertical UpperBound scrollbar for canvas |
private int |
visibleScr
scrollbar's 'visible' amount |
Fields inherited from class java.awt.Frame |
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis |
Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, showWithParent, warningString, windowListener, windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
(package private) |
ShowPlotPopup(MAExplorer mae,
int plotMode,
java.lang.String title,
java.lang.String popupName,
int popupPropertyBits,
int frmOffset)
ShowPlotPopup() - constructor to create a spreadsheet from raw data with URL spec. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
actionPerformed() - Handle Control panel button clicks |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged() - handle scroll events if plot supports scrollers. |
(package private) void |
close()
close() - close this popup and reset flags if needed |
private boolean |
createPopupPlot()
createPopupPlot() - create the popup plot |
void |
itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged() - handle check box item state changed events NOTE: need to implement radio groups here since AWT only implements radio groups for Checkboxes, and not for Checkbox MenuItems. |
void |
mouseClicked(java.awt.event.MouseEvent e)
mouseClicked() - handle mouse Click events |
void |
mouseDragged(java.awt.event.MouseEvent e)
mouseDragged() - handle mouse Drag events |
void |
mouseEntered(java.awt.event.MouseEvent e)
mouseEntered() - handle mouse Enter events |
void |
mouseExited(java.awt.event.MouseEvent e)
mouseExited() - handle mouse Exit events |
void |
mouseMoved(java.awt.event.MouseEvent e)
mouseMoved() - handle mouse Move events |
void |
mousePressed(java.awt.event.MouseEvent e)
mousePressed() - handle mouse Press events |
void |
mouseReleased(java.awt.event.MouseEvent e)
mouseReleased() - handle mouse Release events |
private void |
saveAsGifFile(java.lang.String oGifFileName)
saveAsGifFile() - save plot canvas in oGifFileName |
(package private) void |
updateCurGene(int mid,
java.lang.Object sObj)
updateCurGene() - update plot if current gene changed and this type of plot requires it. |
(package private) void |
updateFilter(GeneList ml)
updateFilter() - update plot if Filter changed and this type of plot requires it. |
(package private) void |
updateLabels()
updateLabels() - update string report if labels changed and this type of plot requires it. |
private boolean |
updatePlot()
updatePlot() - update the popup plot |
(package private) void |
updateScaling()
updateScaling() - set scaling mode in proper sub-object for plotMode. |
(package private) void |
updateSlider()
updateSlider() - update plot if Slider changed and this type of plot requires it. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
windowClosing() - close down the window. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
Methods inherited from class java.awt.Frame |
|
Methods inherited from class java.awt.Window |
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private MAExplorer mae
static final int TH_EQ
static final int TH_LT
static final int TH_GT
static final int TH_IN
static final int TH_OUT
static final int POPUP_WIDTH
static final int POPUP_HEIGHT
java.lang.String title
int plotMode
int frameWidth
int frameHeight
java.lang.String popupName
int popupPropertyBits
private java.awt.Font buttonFont
private java.awt.Panel sPanel
private java.awt.Scrollbar vertLBscr
private java.awt.Scrollbar vertUBscr
private java.awt.Scrollbar horizLBscr
private java.awt.Scrollbar horizUBscr
private java.awt.Checkbox mouseOverCheckBox
private java.awt.Button closeButton
private java.awt.Button histBinRangeButton
private java.awt.Button reFilterHistButton
private java.awt.Button scalingButton
private java.awt.Button nonFilteredGenesButton
private java.awt.Button saveAsButton
java.lang.String histBinRange
int histBinMode
private int maxStepsScr
private int visibleScr
boolean outsideRangeFlag
boolean reFilterHistFlag
boolean logScalingFlag
boolean showNonFilteredGenesFlag
java.lang.String defGifFile
DrawScatterPlot dwSP
DrawHistogram dwH
DrawRatioHistogram dwRH
DrawClusterGram dwCG
Constructor Detail |
ShowPlotPopup(MAExplorer mae, int plotMode, java.lang.String title, java.lang.String popupName, int popupPropertyBits, int frmOffset)
mae
- is the MAExplorer instanceplotMode
- is the mae.PLOT_xxxx statetitle
- is the title of plotpopupName
- is the name for the PopupRegistrypopupPropertyBits
- are the property bits for the PopupRegistryfrmOffset
- is the frame offset in pixelsPopupRegistry.addPopupWindowToReg(ShowPlotPopup, java.lang.String, int)
,
PopupRegistry.removePopupByKey(java.lang.String)
,
createPopupPlot()
Method Detail |
private boolean createPopupPlot()
DrawClusterGram
,
DrawHistogram
,
DrawRatioHistogram
,
DrawScatterPlot
,
SampleSets.setHPxyModStrings()
,
updateScaling()
private boolean updatePlot()
DrawClusterGram.updateCGplot(GeneList, HierClustNode)
,
DrawHistogram.updateHistogramPlot()
,
DrawRatioHistogram.updateRatioHistogramPlot()
,
DrawScatterPlot.updateScatterPlot()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- is ActionEvent for buttons in control panelDrawClusterGram.actionPerformed(java.awt.event.ActionEvent)
,
EventMenu.promptFileName(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean)
,
Util.rmvFinalSubDirectory(java.lang.String, java.lang.String, boolean)
,
Util.saveCmdHistory(java.lang.String)
,
close()
,
saveAsGifFile(java.lang.String)
,
updateScaling()
void updateScaling()
DrawHistogram.updateScaling(boolean)
,
DrawRatioHistogram.updateScaling(boolean)
,
Draw2Dplot.updateScaling(boolean, boolean)
private void saveAsGifFile(java.lang.String oGifFileName)
oGifFileName
- is full path file name of saved GIF file.ClusterGramCanvas.drawGifFile(java.lang.String)
,
DrawHistogram.drawGifFile(java.lang.String)
,
DrawRatioHistogram.drawGifFile(java.lang.String)
,
DrawScatterPlot.drawGifFile(java.lang.String)
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- is window closing eventclose()
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- is mouse pressed eventDrawClusterGram.mousePressed(java.awt.event.MouseEvent)
,
DrawHistogram.mousePressed(java.awt.event.MouseEvent)
,
DrawRatioHistogram.mousePressed(java.awt.event.MouseEvent)
,
Draw2Dplot.mousePressed(java.awt.event.MouseEvent)
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- is mouse released eventDrawClusterGram.mouseReleased(java.awt.event.MouseEvent)
,
DrawHistogram.mouseReleased(java.awt.event.MouseEvent)
,
DrawRatioHistogram.mouseReleased(java.awt.event.MouseEvent)
,
Draw2Dplot.mouseReleased(java.awt.event.MouseEvent)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- is mouse clicked eventDrawClusterGram.mouseClicked(java.awt.event.MouseEvent)
,
DrawHistogram.mousePressed(java.awt.event.MouseEvent)
,
DrawRatioHistogram.mousePressed(java.awt.event.MouseEvent)
,
Draw2Dplot.mousePressed(java.awt.event.MouseEvent)
public void mouseMoved(java.awt.event.MouseEvent e)
e
- is mouse moved eventDrawClusterGram.mouseMoved(java.awt.event.MouseEvent)
,
DrawHistogram.mouseMoved(java.awt.event.MouseEvent)
,
DrawRatioHistogram.mouseMoved(java.awt.event.MouseEvent)
,
Draw2Dplot.mouseMoved(java.awt.event.MouseEvent)
public void mouseDragged(java.awt.event.MouseEvent e)
e
- is mouse dragged eventDrawClusterGram.mouseDragged(java.awt.event.MouseEvent)
,
DrawHistogram.mouseDragged(java.awt.event.MouseEvent)
,
DrawRatioHistogram.mouseDragged(java.awt.event.MouseEvent)
,
Draw2Dplot.mouseDragged(java.awt.event.MouseEvent)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- is mouse entered eventDrawClusterGram.mouseEntered(java.awt.event.MouseEvent)
,
DrawHistogram.mouseEntered(java.awt.event.MouseEvent)
,
DrawRatioHistogram.mouseEntered(java.awt.event.MouseEvent)
,
Draw2Dplot.mouseEntered(java.awt.event.MouseEvent)
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- is mouse exited eventDrawClusterGram.mouseExited(java.awt.event.MouseEvent)
,
DrawHistogram.mouseExited(java.awt.event.MouseEvent)
,
DrawRatioHistogram.mouseExited(java.awt.event.MouseEvent)
,
Draw2Dplot.mouseExited(java.awt.event.MouseEvent)
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
e
- is scroller adjustment eventDrawHistogram.updateScrolledRegion(float, float)
,
Draw2Dplot.updateScrolledRegion(float, float, float, float)
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- is checkbox toggle eventUtil.saveCmdHistory(java.lang.String)
void updateCurGene(int mid, java.lang.Object sObj)
mid
- is the new Master Gene ID of the current geneDrawClusterGram.updateCurGene(int)
,
Component.repaint()
,
Component.repaint()
,
Component.repaint()
,
DrawScatterPlot.setCurGene(int)
void updateFilter(GeneList ml)
ml
- is the gene list to update now that filter has changed.updatePlot()
void updateSlider()
DrawScatterPlot.drawScatterPlot()
void updateLabels()
updatePlot()
void close()
DrawClusterGram.close()
,
PopupRegistry.rmvPopupFromReg(ShowPlotPopup)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |