Public Member Functions | |
VistaApp () | |
CommUnit | getCommUnit () |
ErrorHandler | getErrorHandler () |
boolean | updatePosition () |
boolean | updatePosition (long minX, long maxX) |
String | getChrom (String posString) throws Exception |
long | getMinX (String posString) throws Exception |
long | getMaxX (String posString) throws Exception |
boolean | updatePosition (String position) |
boolean | updatePosition (String chrom, long minX, long maxX) |
boolean | isChrom () |
String | getPositionString () |
void | setPositionString (String chr, String min, String max) throws Exception |
void | setPositionString (String string) throws Exception |
void | lastPosition () |
void | nextPosition () |
void | pushInHistory () |
void | setForwardBackBtns () |
GenomeInfo | getBaseGenome () |
String | getSelectedOrg () |
void | setOrgLabel (int org) |
void | setBaseGenome (GenomeInfo baseGenome) |
long | getMinX () |
long | getMaxX () |
long | getMinX (int i) |
long | getMaxX (int i) |
int | getConsIdentity () |
int | getCalcWindow () |
int | getMinY () |
int | getMinY (CurveInfo curve) |
int | getMaxY () |
int | getMaxY (CurveInfo curve) |
int | getConsWidth () |
boolean | isDefaultVisible () |
void | setChrom (String chr) |
String | getChrom () |
HttpURLConnection | getConnection () |
InputStream | getInputStream () |
void | resetConnection () |
GenesInfo[] | getGenesInfo () |
String | getDefaultGenes () |
OutputStream | getOutputStream (String type) |
Image | getImage (String name) |
String | getTextbrowserURL () |
String | getRuns () |
String | getPos () |
String | getShow () |
String | getBG () |
void | printStatusBar (String s) |
void | clearStatusBar () |
void | stopProgress () |
void | startProgress (final String desc) |
void | init () |
int | getDataInterval () |
int | getNumDataPoints () |
int | getGraphWidth () |
int | convertX (long X, int line, int offset, int width) |
int | convertX (double X, int line, int offset, int width) |
void | updateCurrPosition (String s) |
void | updateContig (String s) |
DisplayPanel | getDisplayPanel () |
AbstractAction | getDetailsAction () |
void | setDetailsActionEnabled (boolean flag) |
AbstractAction | getSettingsAction () |
AbstractAction | getRemoveAction () |
AbstractAction | getStatAction () |
String | getVersion () |
void | enableGUI () |
void | disableGUI () |
void | setParam (String param, Object val) |
String | getParam (String parName, String defValue) |
int | getParam (String parName, int defValue) |
long | getChromSize (final String chr) throws VGBException |
long | getChromSize () throws VGBException |
synchronized void | release () |
synchronized void | setReady (boolean f) |
synchronized boolean | isReady () |
void | run () |
void | upDate () |
void | windowClosing (WindowEvent e) |
void | windowClosed (WindowEvent e) |
void | windowOpened (WindowEvent e) |
void | windowIconified (WindowEvent e) |
void | windowDeiconified (WindowEvent e) |
void | windowActivated (WindowEvent e) |
void | windowDeactivated (WindowEvent e) |
synchronized void | resetCounter1 () |
synchronized void | resetCounter2 () |
synchronized void | resetCounter3 () |
synchronized boolean | isIdle1 () |
synchronized boolean | isIdle2 () |
synchronized boolean | isIdle3 () |
synchronized void | freezeCounters (boolean f) |
AbstractAction | getAddAction () |
void | checkCurves (final String pos) |
void | refreshOrgList () |
History | getHistory () |
SwapCurvesAction | getSwapCurvesAction () |
void | swapCurves () throws Exception |
void | setUCSCActionTip (String tip) |
void | testPosition (int minx, int maxx) |
Element | getDialogElement (String name) |
boolean | setNewSize (int width, int height) |
synchronized void | setNewWidth (int nw) |
synchronized void | setNewHeight (int nh) |
synchronized int | getNewWidth () |
synchronized int | getNewHeight () |
void | setSettingsVisible (boolean b) |
void | enablePrinting (boolean key) |
synchronized void | setDangerous (boolean d) |
synchronized boolean | isDangerous () |
String | getPostHeader () |
Static Public Member Functions | |
void | setDebugLevel (String dLevel) |
String | getRandomString (int length) |
Public Attributes | |
Resource | resource = null |
boolean | cuready = false |
boolean | started = true |
boolean | canResize = false |
boolean | useParameters = true |
GeneSearchPanel | geneSearchPanel = null |
PrinterJob | printJob = null |
PageFormat | pageFormat = null |
Paper | paper = null |
String | scrollbar |
Static Public Attributes | |
final String | RELEASE_DATE = "2005-01-10" |
boolean | debugInit = false |
boolean | debugComm = false |
boolean | debugProgress = false |
boolean | debugAction = false |
Image | legend = null |
boolean | debugException |
Package Attributes | |
VistaApp | va = null |
AbstractAction | scrollBackwardAction |
AbstractAction | scrollForwardAction |
AbstractAction | backAction |
AbstractAction | forwardAction |
AbstractAction | zoomInAction |
AbstractAction | zoomOutAction |
AbstractAction | ucscAction |
AbstractAction | detailsAction |
AbstractAction | settingsAction |
AbstractAction | addAction |
AbstractAction | removeAction |
AbstractAction | helpAction |
AbstractAction | aboutAction |
AbstractAction | printAction |
AbstractAction | printerSetupAction |
AbstractAction | pageSetupAction |
AbstractAction | saveAsAction |
AbstractAction | statAction |
AbstractAction | swapCurvesAction |
AbstractAction | scrollBackwardAction2 |
AbstractAction | scrollForwardAction2 |
AbstractAction | backAction2 |
AbstractAction | forwardAction2 |
AbstractAction | zoomInAction2 |
AbstractAction | zoomOutAction2 |
AbstractAction | ucscAction2 |
AbstractAction | detailsAction2 |
AbstractAction | settingsAction2 |
AbstractAction | addAction2 |
AbstractAction | removeAction2 |
AbstractAction | helpAction2 |
AbstractAction | aboutAction2 |
AbstractAction | printAction2 |
AbstractAction | pageSetupAction2 |
AbstractAction | saveAsAction2 |
AbstractAction | statAction2 |
AbstractAction | addAction3 |
Description: The entry point into the UI. This is a singleton classs.
Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory
Company: LBNL
|
VistaApp is the main class of the applet |
|
Method checkCurves starts separate thread, check curves for visibility and set visibility rules for displayed curves
|
|
remove any text from the status bar |
|
convert chromosome coordinate into screen coordinate, according to the line number, offset and panel width
|
|
convert chromosome coordinate into screen coordinate,
|
|
call setEnabled(false) for all components joined with action |
|
call setEnabled(true) for all components joined with action |
|
enable or disable printing actions The only reason of using this method is bug in java 1.5
|
|
Stop applet timer
|
|
return addAction3
|
|
get baseGenome
|
|
return base genome name
|
|
return calc. window (parameter "window")
|
|
return current chromosome
|
|
try to extract chromosome name from the position string
|
|
return size of current chromosome or contig
|
|
Return chromosome size. First try to find chromosome info in the applet records, id failed, try to ask server about the chromosome.
|
|
return a CommUnit object
|
|
return connection field
|
|
return cons. identity (parameter "min_id")
|
|
return minConsWidth
|
|
return interval between two pixils
|
|
getDefaultGenes
|
|
return detailsAction2
|
|
Retern Element from XML Document from dialogs.xml
|
|
getDisplayPanel
|
|
return handler of the Error Message Box
|
|
getGenesInfo
|
|
return adjusted width of a curve panel
|
|
Return history object
|
|
download image from the server
|
|
return InputStream from the connection
|
|
return maxX for "i" line
|
|
return maxX
|
|
try to extract maxX from the position string
|
|
rerurn maxY parameter for the curve. This parameter determins maxY of the curve at startup.
|
|
deturn default/actual maxY value
|
|
return minX for "i" line
|
|
return minX
|
|
try to extract minX from the position string
|
|
rerurn minY parameter for the curve. This parameter determins minY of the curve at startup.
|
|
deturn default/actual minY value
|
|
return newHeight
|
|
return newWidth
|
|
return expected number of data points.
|
|
return OutputStream to "POST" data to the server ToDo This method should throw an exception instead of returning something
|
|
try to get integer from Map parameters, then from applet getParameter(String) or return default value
|
|
try to get String from Map parameters, then from applet getParameter(String) or return default value
|
|
return position as formated string
|
|
return formated position string
|
|
getPostHeader
|
|
return string of specified length with rndom content
|
|
return removeAction2
|
|
return servlet-ready formated run list.
|
|
get selected organism
|
|
return settingsAction2
|
|
return a servlet parameter "showdefaults"
|
|
return statAction2
|
|
return URL for the text browser
|
|
getVersion
|
|
This is an important and big method. A lot of parameters and objects are created here. |
|
return true if current contig is real chromosome
|
|
return true if action can destroy the applet. So, the action must be disabled or delayed
|
|
show or not to show default curves
|
|
return true if idle more than 20 min
|
|
return true if idle more than 30 sec
|
|
return true if idle more than 0.5 sec
|
|
|
|
set status from previous position |
|
set status from nextPosition |
|
show sring in the status bar
|
|
push curent status in history |
|
refresh organism list in the pull-dawn menu |
|
Do some work and refresh panels after slow operations, like data pulling |
|
set connection to null |
|
start 20 min counter |
|
start 30 sec counter |
|
start 0.5 sec min counter |
|
Main thread of the applet. Doing lots of things. At start time pulls al configuration files from our server, creates important panels, creates instance of CommUnit and starts data pulling. During lifetime manages three timers and applet size. Updates information from server when the applet is idle. |
|
set baseGenome
|
|
set current chromosome
|
|
Some actions set dangerous field in true in order to disable other actions. When the action is completed it must return dangerous to false
|
|
debugInit = "1" or "init" debugProgress = "2" or "progress" debugComm = "4" or "comm" debugAction = "8" or "action" debugException = "16" or "exception" debug All = 1|2|4|8|16 or "all"
|
|
call setEnabled(boolean) for detailsAction and detailsAction2
|
|
Enable od disable >> or/ond << button |
|
setNewHeight
|
|
This method is called from JavaScript and sets new applet size. This doesn't happen in all browsers
|
|
setNewWidth
|
|
set orgLabel
|
|
replace an object in the parameters Map
|
|
set position (chromosome, start, end) from formated string
|
|
set position from parameters
|
|
|
|
Enable or disable settings actions
|
|
Set ToolTip for UCSC action button and menu.
|
|
Start RIGHT-TOP DNA Icon rotation set ready(false), stop timers, disable GUI, write comment in the status bar
|
|
Stop RIGHT-TOP DNA Icon rotation start timers, enable GUI, remove comment from the status bar
|
|
Switch base genome. Works if only one curve is selected.
|
|
testPosition
|
|
currently Not used Check server for new and deleted curves and new versions since start time.
|
|
|
|
|
|
updatePosition is a key method for geting curves.
|
|
updatePosition is a key method for geting curves.
|
|
updatePosition is a key method for geting curves.
|
|
updatePosition is a key method for geting curves.
|
|
Stop dataPuller thread when closing
|
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
This public parameter provides access to the default section of the resource file. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |
|
almost all actions are duplicated because of some features that are different in Java 1.2 and older versions. |