Class PopupFamilyNameSelector

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

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

Class PopupFamilyNameSelector .java - popup protein family name selection 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
           
private  java.awt.Button closeButton
          close window button
private  java.awt.Panel controlPanel
           
private  java.awt.Checkbox familyANDCheckBox
          select BOTH family and Checkbox
private  long[] familyBits
          list of family bits
private  java.awt.Checkbox[] familyNameCheckbox
          [0:nFamilies-1] checkboxes
private  java.awt.Frame familyNameFrame
          Frame of Family name checkboxes
private  java.lang.String[] familyNames
          list of family names
private  int idxSortALL
          index of "ALL" in sortedNamesIdx[] list
private  int nFamilies
          # of Families
private  ProtPlot prp
           
private  ReadFamilies rf
           
private  int[] sortedIdxToNamesIdx
          map table to map sorted index to name idx
private  int[] sortedNamesIdx
          index list of names sorted alphabetically by familyNames[]
private  ShowScatterPlotPopup spp
           
 
Constructor Summary
(package private) PopupFamilyNameSelector(ProtPlot prp, ShowScatterPlotPopup spp)
          PopupFamilyNameSelector() - popup selector for family 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

rf

private ReadFamilies rf

familyNameFrame

private java.awt.Frame familyNameFrame
Frame of Family name checkboxes

checkBoxPanel

private java.awt.Panel checkBoxPanel

controlPanel

private java.awt.Panel controlPanel

familyANDCheckBox

private java.awt.Checkbox familyANDCheckBox
select BOTH family and Checkbox

familyNameCheckbox

private java.awt.Checkbox[] familyNameCheckbox
[0:nFamilies-1] checkboxes

closeButton

private java.awt.Button closeButton
close window button

nFamilies

private int nFamilies
# of Families

familyNames

private java.lang.String[] familyNames
list of family names

familyBits

private long[] familyBits
list of family bits

sortedNamesIdx

private int[] sortedNamesIdx
index list of names sorted alphabetically by familyNames[]

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

PopupFamilyNameSelector

PopupFamilyNameSelector(ProtPlot prp,
                        ShowScatterPlotPopup spp)
PopupFamilyNameSelector() - popup selector for family 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
Parameters:
e - is WindowEvent when close

windowClosed

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

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened 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