|
||||||||||
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.ScrollPane | +--DrawClusterGram
This class creates and displays a ClusterGram canvas window. It contains a scrollable ClusterGram canvas of ordered genes in a popup window. When performing clustering, it is updated by the PopupRegistry when the current gene, Filter.workingCL, or other state values change. If hierarchical clustering is used, it uses dendrogram data structures in HierClustNode - otherwise data may be] passed an ordered GeneList (i.e. mList[]).
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/.
ClusterGenes
,
ClusterGramCanvas
,
HierClustNode
, Serialized FormInner classes inherited from class java.awt.ScrollPane |
java.awt.ScrollPane.AccessibleAWTScrollPane, java.awt.ScrollPane.PeerFixer |
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 | |
(package private) ClusterGramCanvas |
cgC
Clustergram canvas |
private int |
curCGmid
current mid of selected ClusterGram row |
private int |
curCGrow
current selected row of ClusterGram |
private java.awt.Button |
custGramReport
popup Report |
private java.awt.Checkbox |
dGramCheckBox
toggle drawing the dendrogram |
(package private) boolean |
drawDendroGramFlag
set if draw dendrogram as well |
(package private) java.awt.Graphics |
gGif
draw status at top of Gif image |
(package private) ShowExprProfilesPopup |
hierClustersExprProfPopup
exists if create EP plot subset popup |
private boolean |
keepFlagsOnClosing
mode of operation used in creating thiswindow for use in closing the window |
private MAExplorer |
mae
link to global instance |
(package private) int |
N_EP_GENES
default # of genes to display in EP list |
private int |
nCols
# of columns in clustergram |
private int |
nEPgenes
# of genes to display in popup EP plot |
private int |
nGenes
# genes in orderedCL |
private int |
nRows
# of rows in clustergram |
private GeneList |
orderedCL
GeneList being used |
(package private) int |
plotMode
plot mode |
private java.awt.Button |
saveAsGIF
Save display as GIF file |
private java.awt.Button |
showEPsubset
show expression profiles for nEPgenes at current ClusterGram position curCGrow |
private java.awt.Button |
showHPnames
show list of Samples |
(package private) ShowPlotPopup |
spp
Parent popup window instance |
(package private) StatusCanvas |
statusCanvas
status canvas |
(package private) int |
statusCanvasHeight
height size of status canvas |
private java.lang.String |
title
title for window |
private java.awt.Panel |
titlePanel
titlePanel of parent |
private HierClustNode |
tree
cluster tree |
private java.awt.Button |
zoomDgramButton
zoom in on dendrogram |
Fields inherited from class java.awt.ScrollPane |
base, hAdjustable, nameCounter, scrollbarDisplayPolicy, SCROLLBARS_ALWAYS, SCROLLBARS_AS_NEEDED, SCROLLBARS_NEVER, serialVersionUID, vAdjustable |
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) |
DrawClusterGram(MAExplorer mae,
ShowPlotPopup spp,
java.awt.Panel titlePanel,
HierClustNode tree,
GeneList orderedCL,
java.lang.String title,
int plotMode,
boolean keepFlagsOnClosing)
DrawClusterGram() - Create popup grid of ClusterGram plots. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
actionPerformed() - Handle button clicks |
(package private) void |
addButtonsToParent(ShowPlotPopup spp,
java.awt.Panel p,
java.awt.Font bFont)
addButtonsToParent() - add buttons for this plot to parents's panel |
(package private) void |
close()
close() - close this popup and reset flags if keepFlagsOnClosing is false |
(package private) void |
drawScaleMapAndVerticalLabels(java.awt.Graphics gGif)
drawScaleMapAndVerticalLabels() - draw scale map & vert lbls i in the title panel status area |
java.awt.Dimension |
getMinimumSize()
getMinimumSize() - get the minimum preferred size |
java.awt.Dimension |
getPreferredSize()
getPreferredSize() - get the preferred size |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
mouseMoved() - process mouse event |
void |
mousePressed(java.awt.event.MouseEvent e)
Pass all mouse events down to the Canvas. |
void |
mouseReleased(java.awt.event.MouseEvent e)
mouseReleased() - Pass all mouse events down to the Canvas. |
void |
paint()
paint() - redraw clustergram |
(package private) void |
updateCGplot(GeneList orderedCL,
HierClustNode tree)
updateCGplot() - update ClusterGram plots using new GeneList. |
(package private) void |
updateCurGene(int mid)
updateCurGene()- update the current gene in the ClusterGram |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
windowClosing() - closing down the window, get rid of the frame. |
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.ScrollPane |
|
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMouseEventTarget, getWindow, insets, invalidate, invalidateTree, isAncestorOf, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paint, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, 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
ShowPlotPopup spp
private HierClustNode tree
private java.lang.String title
private java.awt.Panel titlePanel
ClusterGramCanvas cgC
private GeneList orderedCL
private int nGenes
final int N_EP_GENES
int plotMode
private int nRows
private int nCols
private int curCGrow
private int curCGmid
private int nEPgenes
int statusCanvasHeight
boolean drawDendroGramFlag
private boolean keepFlagsOnClosing
StatusCanvas statusCanvas
java.awt.Graphics gGif
private java.awt.Checkbox dGramCheckBox
private java.awt.Button saveAsGIF
private java.awt.Button custGramReport
private java.awt.Button zoomDgramButton
private java.awt.Button showHPnames
private java.awt.Button showEPsubset
ShowExprProfilesPopup hierClustersExprProfPopup
Constructor Detail |
DrawClusterGram(MAExplorer mae, ShowPlotPopup spp, java.awt.Panel titlePanel, HierClustNode tree, GeneList orderedCL, java.lang.String title, int plotMode, boolean keepFlagsOnClosing)
mae
- is the MAExplorer instancespp
- is the ShowPlotPopup instancetitlePanel
- is where to put extra stufftree
- is the HierClustNode cluster treeorderedCL
- is thegene list to usetitle
- for windowplotMode
- is the specific plot mode to implementkeepFlagsOnClosing
- to save flags on closingClusterGramCanvas
,
Filter.showNbrFilteredGenes()
,
StatusCanvas
,
Util.showMsg(java.lang.String)
,
Component.repaint()
Method Detail |
void addButtonsToParent(ShowPlotPopup spp, java.awt.Panel p, java.awt.Font bFont)
spp
- is the ShowPlotPopup instancep
- is panel where to put extra stuffbFont
- is font to usepublic java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Container
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class java.awt.Container
public void paint()
g
- is graphics contextComponent.repaint()
,
updateCGplot(GeneList, HierClustNode)
void updateCurGene(int mid)
mid
- is the Master Gene Index if not -1ClusterGramCanvas.updateCurGene(int)
,
Component.repaint()
void updateCGplot(GeneList orderedCL, HierClustNode tree)
orderedCL
- is thegene list to usetree
- is the HierClustNode cluster treeClusterGramCanvas.updateData(GeneList, HierClustNode)
void close()
EventMenu.setClusterDisplayState(java.awt.CheckboxMenuItem, boolean)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- is button pressed eventClusterGramCanvas.drawGifFile(java.lang.String)
,
Component.repaint()
,
EventMenu.promptFileName(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean)
,
Component.repaint()
,
Report
,
SampleSets.showHP_E_assignmentsPopup()
,
ShowExprProfilesPopup
,
Util.rmvFinalSubDirectory(java.lang.String, java.lang.String, boolean)
,
Util.nextZoomMag(int, int)
,
Util.saveCmdHistory(java.lang.String)
,
Component.repaint()
,
close()
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- is window closing eventWindow.dispose()
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- is button released eventClusterGramCanvas.setCurrentGene(int, int, int, boolean)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
e
- is button moved eventpublic 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
void drawScaleMapAndVerticalLabels(java.awt.Graphics gGif)
gGif
- is graphics context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |