Class PopupTissueNameSelector

java.lang.Object
  |
  +--PopupTissueNameSelector
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.ItemListener, java.awt.event.WindowListener

public class PopupTissueNameSelector
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.WindowListener

Class PopupTissueNameSelector .java - popup window to define tissue names This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government and Djamel Medjahed (SAIC-Frederick). 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.

Version:
$Date: 2002/10/14 20:17:17 $ $Revision: $
Author:
P. Lemkin (NCI), Djamel Medjahed (SAIC), NCI-Frederick, Frederick, MD
See Also:
ProtPlot Home

This work was derived from MAExplorer under the Mozilla 1.1 Open Source Public License by Peter Lemkin of the National Cancer Institute, an agency of the United States Government subject to the limitations noted in the accompanying LEGAL file. See licence info on http://maexplorer.sourceforge.org/


Field Summary
private  java.awt.Panel checkBoxPanel
          Frame of tissue name checkboxes
private  java.awt.Button closeButton
          close window button
private  java.awt.Panel controlPanel
          Frame of tissue name checkboxes
private  int idxSortALL
          index of "ALL" in sortedNamesIdx[] list
private  int nTissues
          # of tissues
private  ProtPlot prp
           
private  ReadTissues rt
           
private  int[] sortedIdxToNamesIdx
          map table to map sorted index to name idx
private  int[] sortedNamesIdx
          index list of names sorted alphabetically by tissueNames[0:nTissues-1]
private  ShowScatterPlotPopup spp
           
private  java.awt.Checkbox tissueANDCheckBox
           
private  long[] tissueBits
          list of tissue bits
private  java.awt.Checkbox[] tissueNameCheckbox
           
private  java.awt.Frame tissueNameFrame
           
private  java.lang.String[] tissueNames
          list of tissue names
 
Constructor Summary
(package private) PopupTissueNameSelector(ProtPlot prp, ShowScatterPlotPopup spp)
          PopupTissueNameSelector() - popup selector for tissue name(s)
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          actionPerformed() - Handle button clicks
 void itemStateChanged(java.awt.event.ItemEvent e)
          itemStateChanged() - handle item state checkbox selectors.
 void quit()
          quit() - kill this frame
 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.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

prp

private ProtPlot prp

spp

private ShowScatterPlotPopup spp

rt

private ReadTissues rt

tissueNameFrame

private java.awt.Frame tissueNameFrame

checkBoxPanel

private java.awt.Panel checkBoxPanel
Frame of tissue name checkboxes

controlPanel

private java.awt.Panel controlPanel
Frame of tissue name checkboxes

tissueANDCheckBox

private java.awt.Checkbox tissueANDCheckBox

tissueNameCheckbox

private java.awt.Checkbox[] tissueNameCheckbox

closeButton

private java.awt.Button closeButton
close window button

nTissues

private int nTissues
# of tissues

tissueNames

private java.lang.String[] tissueNames
list of tissue names

tissueBits

private long[] tissueBits
list of tissue bits

sortedNamesIdx

private int[] sortedNamesIdx
index list of names sorted alphabetically by tissueNames[0:nTissues-1]

sortedIdxToNamesIdx

private int[] sortedIdxToNamesIdx
map table to map sorted index to name idx

idxSortALL

private int idxSortALL
index of "ALL" in sortedNamesIdx[] list
Constructor Detail

PopupTissueNameSelector

PopupTissueNameSelector(ProtPlot prp,
                        ShowScatterPlotPopup spp)
PopupTissueNameSelector() - popup selector for tissue name(s)
Method Detail

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged() - handle item state checkbox selectors. computes the prp.useClasBits.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed() - Handle button clicks
Specified by:
actionPerformed in interface java.awt.event.ActionListener

quit

public void quit()
quit() - kill this frame

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
windowClosing() - close down the window.
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener