|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.birdseyeview.BirdsEyeView
public class BirdsEyeView
The BirdsEyeView Class is the main class for the Bird's Eye View API in the Metnet Project. This class contains information about the experimental data and the GUI objects. This class may be incorporated as a panel into an existing GUI. Use the BirdsEyeViewWindow class to run the Bird's Eye View API as a stand alone application.
| Nested Class Summary | |
|---|---|
(package private) class |
BirdsEyeView.LoadAnnotation
This class uses thread to load annotation independently |
(package private) class |
BirdsEyeView.Task
|
| Field Summary | |
|---|---|
static int |
CellViewID
|
static java.lang.String |
CellViewName
|
static int[] |
colorBrew
|
static int |
DefaultViewID
|
int |
fileFormat
|
int |
genedotCapacity
|
static int |
GenePanelBuffer
|
static java.awt.Dimension |
GenePanelSize
|
static int |
GoBioProcessViewID
|
static java.lang.String |
GoBioProcessViewName
|
static int |
GoFunctionViewID
|
static java.lang.String |
GoFunctionViewName
|
int[] |
oricolorRange
|
static java.lang.String |
PathwayCompartmentPrefix
|
int |
pathwaydotCapacity
|
static java.lang.String |
PathwayPrefix
|
static int |
PathwayViewID
|
static java.lang.String |
PathwayViewName
|
(package private) static java.util.ArrayList<Annotation> |
selectedAnnotation
|
int |
textpanelCapacity
|
| Constructor Summary | |
|---|---|
BirdsEyeView(javax.swing.JFrame f)
Constructor. |
|
BirdsEyeView(javax.swing.JFrame f,
int initialViewID,
java.lang.String algorithm)
Constructor. |
|
| Method Summary | |
|---|---|
void |
displayaddAnnotations(java.util.ArrayList annList)
This method instructs the root panel to display the given annotation in addition to the annotations that are already being displayed. |
void |
displayAnnotation(Annotation annotation)
This method instructs the root panel to display the given annotation in addition to the annotations that are already being displayed. |
void |
displayOrHideAnnotation(Annotation annotation)
This method instructs the root panel to display or hide the given annotation based on the current status of the annotation. |
void |
displaySpePathGenes(java.lang.String pathway)
This method lets program only show the genes belonging to special pathway |
java.util.ArrayList |
getAnnotations()
This method returns the gene product annotation list. |
java.awt.Component |
getBirdsEyeView()
This method returns the component that contains the Bird's Eye View. |
int |
getCapacity()
|
java.util.Properties |
getConfiguration()
This method returns the configuration object. |
ViewInfo |
getCurrentView()
|
Database |
getDatabase()
This method returns the database object. |
static java.io.File |
getLastDir()
|
LoadController |
getLoadController()
|
RootPanel |
getRootPanel()
|
java.util.ArrayList |
getViewInfoList()
This method returns the view info list. |
void |
goDown()
This method sends the user "down" in the GO hierarchy. |
void |
goUp()
This method sends the user "up" in the GO hierarchy. |
void |
hideAnnotation(Annotation annotation)
This method instructs the root panel to no longer display the given annotation. |
void |
highlightAnnotation(Annotation annotation)
This method highlights the given annoation. |
void |
highlightAnnotations(java.util.ArrayList annList)
This method highlights the given annoation. |
void |
initialize(java.awt.Dimension size,
java.lang.String algorithm)
This method initializes the Bird's Eye View. |
boolean |
isValidViewID(int id)
This method checks the given ID to see if it is a valid view ID. |
void |
loadConfiguration()
This method load the configuration and repaint |
void |
loadData()
This method calls the load controller to load experimental data. |
void |
newData(java.lang.String newExperimentName,
java.util.ArrayList experimentNames,
java.util.ArrayList newProbeNames,
java.util.ArrayList newVariances)
This method processes the new data so it can be displayed. |
void |
newExperiment(int experimentIndex)
This method calls the load controller to load data from a different experiment using the current probe name and variance data. |
void |
newVariances(java.util.ArrayList newVariances)
This method processes the new variances. |
void |
newVariant(double variant,
int sequece)
|
void |
newView(ViewInfo newViewInfo)
This method sets the new view. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Invoked when task's progress property changes. |
void |
repaint()
This method ensures that the window is updated after a change. |
void |
saveAnnotationsToFile()
This method enables the user to save the selected gene annotations to a file. |
void |
setAnnotations(java.util.ArrayList a)
This method sets the annotations list. |
void |
setCapacity(int capacity)
set the capacity to current info |
static void |
setLastDir(java.io.File lastDir)
|
void |
setLoadController(LoadController loadController)
|
void |
setRootPanel(RootPanel rootPanel)
|
boolean |
showhideLegend()
This method shows or hides the legend pane |
void |
showNewData()
Cooperate with newVariant() After all variants called newVariant(), call it to display new data |
void |
toggleMapLabels(boolean labelsOn)
This method turns the map labels on/off given the flag. |
void |
unHighlightAnnotation(Annotation annotation)
This method unhighlights the given annotation. |
void |
updateCapacity(int capacity)
this method update the gene dots' capacity value in legend panel |
void |
updateminiCapacity(int capacity)
this method update the gene dots' capacity minimum value in legend panel when new data loaded |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CellViewID
public static final int PathwayViewID
public static final int GoBioProcessViewID
public static final int GoFunctionViewID
public static final int DefaultViewID
public static final java.lang.String CellViewName
public static final java.lang.String PathwayViewName
public static final java.lang.String GoBioProcessViewName
public static final java.lang.String GoFunctionViewName
public static final java.lang.String PathwayPrefix
public static final java.lang.String PathwayCompartmentPrefix
public static final java.awt.Dimension GenePanelSize
public static final int GenePanelBuffer
public int fileFormat
static java.util.ArrayList<Annotation> selectedAnnotation
public int genedotCapacity
public int pathwaydotCapacity
public int textpanelCapacity
public static int[] colorBrew
public int[] oricolorRange
| Constructor Detail |
|---|
public BirdsEyeView(javax.swing.JFrame f)
f - Parent window
public BirdsEyeView(javax.swing.JFrame f,
int initialViewID,
java.lang.String algorithm)
f - Parent windowinitialView - Valid view IDalgorithm - Treemaps| Method Detail |
|---|
public void initialize(java.awt.Dimension size,
java.lang.String algorithm)
throws BirdsEyeViewException
size - Size of root panel
BirdsEyeViewException - Unable to connect to databasepublic java.awt.Component getBirdsEyeView()
public java.util.ArrayList getViewInfoList()
public void newView(ViewInfo newViewInfo)
newView - Valid ViewInfo objectpublic void loadData()
public void loadConfiguration()
public void newData(java.lang.String newExperimentName,
java.util.ArrayList experimentNames,
java.util.ArrayList newProbeNames,
java.util.ArrayList newVariances)
newExperimentName - The name of the newly selected experimentexperimentNames - List of experiment namesnewProbeNames - List of probe names (or gene product names; affymetrix IDs)newVariances - List of variances (experimental results - Doubles) for the probespublic void newVariances(java.util.ArrayList newVariances)
newVariances - List of variances (experimental results) for the probes
public void newVariant(double variant,
int sequece)
variant - the value of expression levelsequece - the object annotation's sequence in annotation list (may not exist)public void showNewData()
public void newExperiment(int experimentIndex)
experimentIndex - The index of the experiment in the experiment listpublic void goUp()
public void goDown()
public java.util.ArrayList getAnnotations()
public void displayAnnotation(Annotation annotation)
annotation - Annotation objectpublic void displayaddAnnotations(java.util.ArrayList annList)
annotationS - Annotation object Listpublic void displaySpePathGenes(java.lang.String pathway)
pathway - Pathway Namepublic void hideAnnotation(Annotation annotation)
annotation - Annotation objectpublic void displayOrHideAnnotation(Annotation annotation)
annotation - Annotation objectpublic void highlightAnnotation(Annotation annotation)
annotation - Annotation objectpublic void highlightAnnotations(java.util.ArrayList annList)
annotation - Annotation objectpublic void unHighlightAnnotation(Annotation annotation)
annotation - Annotation objectpublic void updateCapacity(int capacity)
capacity - the number of genes represtented in each dotpublic void updateminiCapacity(int capacity)
capacity - the number of genes represtented in each dotpublic java.util.Properties getConfiguration()
public void saveAnnotationsToFile()
public void toggleMapLabels(boolean labelsOn)
labelsOn - Flag indicating if map labels are to be turned onpublic boolean showhideLegend()
public ViewInfo getCurrentView()
public void setCapacity(int capacity)
public int getCapacity()
public boolean isValidViewID(int id)
id -
public void setAnnotations(java.util.ArrayList a)
a - List of Annotation objectspublic void repaint()
public Database getDatabase()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic LoadController getLoadController()
public void setLoadController(LoadController loadController)
loadController - The loadController to set.public RootPanel getRootPanel()
public void setRootPanel(RootPanel rootPanel)
rootPanel - The rootPanel to set.public static java.io.File getLastDir()
public static void setLastDir(java.io.File lastDir)
lastDir - The lastDir to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||