|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--PopupPRPlistSelector
This class creates and displays a popup window to select samples.
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.
This work was derived from prpxplorer 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://prpxplorer.sourceforge.org/
| Field Summary | |
boolean |
allowSetsFlag
Flag is true if may set multiple samples else enforce single sample |
private java.awt.Checkbox |
allowXYsetsCheckBox
allow XY sets (else single) samples Checkbox |
private java.awt.Panel |
checkBoxPanel
|
private java.awt.Button |
clearAllButton
"Clear all" window button |
private java.awt.Button |
closeButton
close window button |
private java.awt.Panel |
controlPanel
|
boolean |
ok
pressed close and the proper number of samples expected was set |
private int |
oldSample
old Sample if selecting a single sample (-1 if none) |
private boolean[] |
oldSampleList
old list of samples [0:oldNlist-1] |
private static ProtPlot |
prp
|
private java.awt.Checkbox |
prpListANDCheckBox
select BOTH family and Checkbox |
private java.awt.Frame |
prpListFrame
Frame of name checkboxes |
private java.awt.Checkbox[] |
prpListNameCheckbox
[0:nFamilies-1] checkboxes |
boolean[] |
sampleList
list of samples in the expression list of of samples [0:prp.nPRPs-1] |
static int |
SEL_CUR_SAMPLE
Select current sample |
static int |
SEL_EP_SAMPLES
Select EP sample |
static int |
SEL_X_SAMPLE
Select Y sample or sample set |
static int |
SEL_Y_SAMPLE
Select Y sample or sample set |
int |
selSample
new selected sample if not -1 |
private int |
selType
|
private java.awt.Button |
setAllButton
"Set all" window button |
private java.awt.Button |
setCancerButton
"Set 'cancer'" window button |
private java.awt.Button |
setNormalButton
"Set 'normal'" window button |
private java.awt.Button |
setPrecancerButton
"Set 'precancer'" window button |
private static ShowScatterPlotPopup |
spp
|
| Constructor Summary | |
(package private) |
PopupPRPlistSelector(ProtPlot prP,
ShowScatterPlotPopup spP,
int selType,
int curSample,
boolean[] curSampleList,
boolean allowSetsFlag)
PopupPRPlistSelector() - popup selector |
| 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 |
saveSamplesList()
saveSamplesList() - Save the save list back into the PRP DB |
void |
setGroupButtonsEnable(boolean flag)
setGroupButtonsEnable() - set the enable state of the sample assignement buttons: "Set all", "Clear all", "Set normal", "Set precancer", "Set cancer" |
void |
setProteinsPerSampleScodeLabels()
setProteinsPerSampleScodeLabels() - set the Scode for all checkbox labels. |
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 |
|
| Field Detail |
private static ProtPlot prp
private static ShowScatterPlotPopup spp
public static final int SEL_CUR_SAMPLE
public static final int SEL_X_SAMPLE
public static final int SEL_Y_SAMPLE
public static final int SEL_EP_SAMPLES
private java.awt.Frame prpListFrame
private java.awt.Panel checkBoxPanel
private java.awt.Panel controlPanel
private java.awt.Checkbox allowXYsetsCheckBox
private java.awt.Checkbox prpListANDCheckBox
private java.awt.Checkbox[] prpListNameCheckbox
private java.awt.Button setAllButton
private java.awt.Button clearAllButton
private java.awt.Button setNormalButton
private java.awt.Button setPrecancerButton
private java.awt.Button setCancerButton
private java.awt.Button closeButton
private int selType
private int oldSample
private boolean[] oldSampleList
public boolean ok
public int selSample
public boolean[] sampleList
public boolean allowSetsFlag
| Constructor Detail |
PopupPRPlistSelector(ProtPlot prP,
ShowScatterPlotPopup spP,
int selType,
int curSample,
boolean[] curSampleList,
boolean allowSetsFlag)
prP - is instance of ProtPlotspP - is instance of ShowScatterPlotPopupselType - is type of selection: SEL_CUR_SAMPLE, SEL_X_SAMPLE,
SEL_Y_SAMPLE, SEL_LISTOF_SAMPLEScurSample - is the current sample # if using a single samplecurSampleList - is the list of current samples # if using multiple samplesallowSetsFlag - is true if may set multiple samples else enforce
single sample| Method Detail |
public void setProteinsPerSampleScodeLabels()
public void setGroupButtonsEnable(boolean flag)
flag - to set all of these buttons.public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void saveSamplesList()
public void quit()
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenere - is WindowEvent when closepublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||