|
||||||||||
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.Panel | +--ExprProfileScrollPane
This creates and displays a scrollable pane list of individual expression profile graphic plots. It will be shown as a Grid of ExprProfilePanel's plots in popup window. Selecting a particular ExprProfilePanel will set the current gene and call the PopupRegistry to update other windows.
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/.
ExprProfilePanel
,
ShowPlotPopup
, Serialized FormInner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
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 Gene |
bestGene
gene if mouse event |
private int |
bestHP
HP if mouse event |
private float |
bestIntens
intensity if mouse event |
private int |
bestMid
gene clone ID if mouse event |
private java.lang.String[] |
cTitle
[0:nGenes-1] "#Master_ID" |
private boolean |
doMeanPlotsFlag
if plot means and SD |
private ExprProfile[] |
epOverlayList
list of overlay expr. |
private GeneList |
epOvrLayCL
special [nGenes*nHP_E] CL |
private java.awt.Panel |
epPanel
holds grid of ExprProfilePanel's |
private ExprProfilePanel[] |
epplList
Expr Profs [nGridElements] |
private GeneList |
exprProfileCL
GeneList being used |
private boolean |
hasMeanPlotsFlag
if hpDataXXX[] exists |
private float[][] |
hpDataMnA
mean[0:nMnGenes-1][0:nHP_E-1] |
private int[] |
hpDataNbrA
# of samples for hpDataXXX[n][] |
private float[][] |
hpDataSDA
S.D.[0:nMnGenes-1][0:nHP_E-1] |
private MAExplorer |
mae
link to global MAExplorer instance |
private float |
maxHPdataMn
max of hpDataMnA[][] data |
private static int |
MIN_COLS
minimum # of columns for the grid |
private static int |
MIN_ROWS
minimum # of rows for the grid |
private int |
mNbr
.mList[mNbr] in database to display |
(package private) int |
N_EP_GENES
|
private int |
nCols
# of columns in the Grid |
private int |
nEPgenes
# genes to display in popup EP plot |
private int |
nGenes
# genes in exprProfileCL |
private int |
nGridElements
i.e. |
private int |
nHP_E
# of HPS in an Expr Profile |
private int |
nMnGenes
# of averaged genes ~ nGenes |
private int |
nPoints
nGenes*nHP_E |
private int |
nRows
# of rows in the Grid |
(package private) int |
plotStyleMode
plot style mode: 0=line, 1=circle, 2=curve |
private int[] |
propList
[nGenes*nHP_E] EP overlay props |
private int |
sbSize
width of scroll bar control |
private ShowExprProfilesPopup |
sepp
Parent window |
private boolean |
showErrBarsFlag
pass through to EP panel |
private java.lang.String |
title
title for entire EP. |
private java.awt.Scrollbar |
vs
vertical scroll bar |
private float[] |
xList
[nGenes*nHP_E] EP overlay coords |
private float[] |
yList
[nGenes*nHP_E] EP overlay coords |
(package private) int |
zoomBarsMag
1X, 2X, 5X, 10X pass through to EP panel |
Fields inherited from class java.awt.Panel |
base, nameCounter, serialVersionUID |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, 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) |
ExprProfileScrollPane(MAExplorer mae,
ShowExprProfilesPopup sepp,
GeneList exprProfileCL,
java.lang.String title,
int preferredPanelWidth,
boolean showKmeansDataFlag)
ExprProfileScrollPane() - Create a popup grid of ExprProfile plots. |
Method Summary | |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged() - handle scroll events and cause repaint. |
void |
paint(java.awt.Graphics g)
paint() - redraw plots near selected Row. |
private void |
setCurGene(int mid)
setCurGene() - set current gene if mid is not -1 |
(package private) void |
setEPcanvasDrawingOptions(boolean showErrBarsFlag,
int zoomBarsMag,
int plotStyleMode)
setEPcanvasDrawingOptions() - set err-bar & zoom status and then repaint. |
(package private) void |
setPlotEPmeansData(int nMnGenes,
int[] hpDataNbrA,
float[][] hpDataMnA,
float[][] hpDataSDA,
boolean doMeanPlotsFlag)
setPlotEPmeansData() - set EP to plot means for each panel |
private void |
setScrollBarPos(int cNumber)
setScrollBarPos() - set the scroll barPosition for this panel. |
private void |
showGeneOfInterest(int mid,
int mouseKeyMods)
showGeneOfInterest() - show quant and genomic data if click on a point in plot |
(package private) void |
updateCurGene(int mid)
updateCurGene()- update the current gene in the EP plot list. |
(package private) void |
updateData(GeneList exprProfileCL,
java.lang.String title)
updateData() - update expression profile scroller with new gene data. |
private void |
updateEPtitles()
updateEPtitles() - generate array of titles for drawing in expression profile plots |
Methods inherited from class java.awt.Panel |
|
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paintComponents, paintHeavyweightComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, setLayout, transferFocus, update, validate, validateTree, writeObject |
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, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
private MAExplorer mae
private static final int MIN_ROWS
private static final int MIN_COLS
private ShowExprProfilesPopup sepp
private java.lang.String title
private GeneList exprProfileCL
private int nGenes
final int N_EP_GENES
private int sbSize
private int nGridElements
private int nRows
private int nCols
private int mNbr
private int nEPgenes
private ExprProfile[] epOverlayList
private ExprProfilePanel[] epplList
private java.lang.String[] cTitle
private int nHP_E
private int nMnGenes
private int[] hpDataNbrA
private float maxHPdataMn
private float[][] hpDataMnA
private float[][] hpDataSDA
private boolean showErrBarsFlag
private boolean doMeanPlotsFlag
private boolean hasMeanPlotsFlag
int plotStyleMode
int zoomBarsMag
private java.awt.Panel epPanel
private java.awt.Scrollbar vs
private float[] xList
private float[] yList
private int nPoints
private int[] propList
private GeneList epOvrLayCL
private Gene bestGene
private int bestHP
private int bestMid
private float bestIntens
Constructor Detail |
ExprProfileScrollPane(MAExplorer mae, ShowExprProfilesPopup sepp, GeneList exprProfileCL, java.lang.String title, int preferredPanelWidth, boolean showKmeansDataFlag)
mae
- is MAExplorer instancesepp
- is the ShowExprProfilesPopup ParentexprProfileCL
- is the gene list to usetitle
- of windowpreferredPanelWidth
- is the set by parent Frame if not 0showKmeansDataFlag
- is the report Kmeans data else just CloneID and nameExprProfilePanel
,
Util.showMsg(java.lang.String)
,
updateData(GeneList, java.lang.String)
Method Detail |
private void updateEPtitles()
void updateData(GeneList exprProfileCL, java.lang.String title)
exprProfileCL
- is the new list of genestitle
- is the title for the canvas labelupdateEPtitles()
,
Component.repaint()
void setEPcanvasDrawingOptions(boolean showErrBarsFlag, int zoomBarsMag, int plotStyleMode)
showErrBarsFlag
- is used if their is duplicate datazoomBarsMag
- magnification factor (1,2,5,10,20) for expression dataplotStyleMode
- (line, circle, curve)Component.repaint()
void setPlotEPmeansData(int nMnGenes, int[] hpDataNbrA, float[][] hpDataMnA, float[][] hpDataSDA, boolean doMeanPlotsFlag)
nMnGenes
- is the # of averaged geneshpDataNbrA
- is the # samples hpDataXXX[n][]hpDataMnA
- is the mean[0:nMnGenes-1][0:nHP_E-1] expression datahpDataSDA
- is the S.D.[0:nMnGenes-1][0:nHP_E-1] expression datadoMeanPlotsFlag
- if plot the mean dataComponent.repaint()
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
g
- is graphics contextExprProfilePanel.setPlotEPmeansData(int, int, float, float[], float[], boolean)
,
ExprProfilePanel.updateData(int, java.lang.String, boolean)
void updateCurGene(int mid)
mid
- is the new Master Gene ID of the current geneComponent.repaint()
private void setScrollBarPos(int cNumber)
cNumber
- is data range to be mapped to scroller rangepublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
e
- is scroller adjustment eventComponent.repaint()
private void setCurGene(int mid)
mid
- is the new Master Gene ID of the current geneCompositeDatabase.setObjCoordFromMID(int, java.lang.Object)
private void showGeneOfInterest(int mid, int mouseKeyMods)
mid
- is the new Master Gene ID of the current genemouseKeyMods
- is SHIFT or CONTROL key modifiers if not 0PopupRegistry.chkOtherCurGeneEffects(int, int)
,
Component.repaint()
,
setCurGene(int)
,
Component.repaint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |