|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel java.applet.Applet javax.swing.JApplet gov.lbl.genome.gui.VistaApp
public class VistaApp
Title: VistaApp
Description: The entry point into the UI. This is a singleton classs.
Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory
Company: LBNL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JApplet |
---|
javax.swing.JApplet.AccessibleJApplet |
Nested classes/interfaces inherited from class java.applet.Applet |
---|
java.applet.Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
java.awt.Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
boolean |
canResize
|
boolean |
cuready
|
static boolean |
debugAction
|
static boolean |
debugComm
|
static boolean |
debugException
|
static boolean |
debugInit
|
static boolean |
debugProgress
|
GeneSearchPanel |
geneSearchPanel
|
static java.awt.Image |
legend
|
java.awt.print.PageFormat |
pageFormat
|
java.awt.print.Paper |
paper
|
java.awt.print.PrinterJob |
printJob
|
static java.lang.String |
RELEASE_DATE
|
Resource |
resource
This public parameter provides access to the default section of the resource file. |
java.lang.String |
scrollbar
|
boolean |
started
|
boolean |
useParameters
|
Fields inherited from class javax.swing.JApplet |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
VistaApp()
VistaApp is the main class of the applet |
Method Summary | |
---|---|
void |
checkCurves(java.lang.String pos)
Method checkCurves starts separate thread, check curves for visibility and set visibility rules for displayed curves |
void |
clearStatusBar()
remove any text from the status bar |
int |
convertX(double X,
int line,
int offset,
int width)
convert chromosome coordinate into screen coordinate, according to the line number, offset and panel width |
int |
convertX(long X,
int line,
int offset,
int width)
convert chromosome coordinate into screen coordinate, |
void |
disableGUI()
call setEnabled(false) for all components joined with action |
void |
enableGUI()
call setEnabled(true) for all components joined with action |
void |
enablePrinting(boolean key)
enable or disable printing actions The only reason of using this method is bug in java 1.5 |
void |
freezeCounters(boolean f)
Stop applet timer |
javax.swing.AbstractAction |
getAddAction()
return addAction3 |
GenomeInfo |
getBaseGenome()
get baseGenome |
java.lang.String |
getBG()
return base genome name |
int |
getCalcWindow()
return calc. |
java.lang.String |
getChrom()
return current chromosome |
java.lang.String |
getChrom(java.lang.String posString)
try to extract chromosome name from the position string |
long |
getChromSize()
return size of current chromosome or contig |
long |
getChromSize(java.lang.String chr)
Return chromosome size. |
CommUnit |
getCommUnit()
return a CommUnit object |
java.net.HttpURLConnection |
getConnection()
return connection field |
int |
getConsIdentity()
return cons. |
int |
getConsWidth()
return minConsWidth |
int |
getDataInterval()
return interval between two pixils |
java.lang.String |
getDefaultGenes()
getDefaultGenes |
javax.swing.AbstractAction |
getDetailsAction()
return detailsAction2 |
Element |
getDialogElement(java.lang.String name)
Retern Element from XML Document from dialogs.xml |
DisplayPanel |
getDisplayPanel()
getDisplayPanel |
ErrorHandler |
getErrorHandler()
return handler of the Error Message Box |
GenesInfo[] |
getGenesInfo()
getGenesInfo |
int |
getGraphWidth()
return adjusted width of a curve panel |
History |
getHistory()
Return history object |
java.awt.Image |
getImage(java.lang.String name)
download image from the server |
java.io.InputStream |
getInputStream()
return InputStream from the connection |
long |
getMaxX()
return maxX |
long |
getMaxX(int i)
return maxX for "i" line |
long |
getMaxX(java.lang.String posString)
try to extract maxX from the position string |
int |
getMaxY()
deturn default/actual maxY value |
int |
getMaxY(CurveInfo curve)
rerurn maxY parameter for the curve. |
long |
getMinX()
return minX |
long |
getMinX(int i)
return minX for "i" line |
long |
getMinX(java.lang.String posString)
try to extract minX from the position string |
int |
getMinY()
deturn default/actual minY value |
int |
getMinY(CurveInfo curve)
rerurn minY parameter for the curve. |
int |
getNewHeight()
return newHeight |
int |
getNewWidth()
return newWidth |
int |
getNumDataPoints()
return expected number of data points. |
java.io.OutputStream |
getOutputStream(java.lang.String type)
return OutputStream to "POST" data to the server ToDo This method should throw an exception instead of returning something |
int |
getParam(java.lang.String parName,
int defValue)
try to get integer from Map parameters, then from applet getParameter(String) or return default value |
java.lang.String |
getParam(java.lang.String parName,
java.lang.String defValue)
try to get String from Map parameters, then from applet getParameter(String) or return default value |
java.lang.String |
getPos()
return position as formated string |
java.lang.String |
getPositionString()
return formated position string |
java.lang.String |
getPostHeader()
getPostHeader |
static java.lang.String |
getRandomString(int length)
return string of specified length with rndom content |
javax.swing.AbstractAction |
getRemoveAction()
return removeAction2 |
java.lang.String |
getRuns()
return servlet-ready formated run list. |
java.lang.String |
getSelectedOrg()
get selected organism |
javax.swing.AbstractAction |
getSettingsAction()
return settingsAction2 |
java.lang.String |
getShow()
return a servlet parameter "showdefaults" |
javax.swing.AbstractAction |
getStatAction()
return statAction2 |
SwapCurvesAction |
getSwapCurvesAction()
|
java.lang.String |
getTextbrowserURL()
return URL for the text browser |
java.lang.String |
getVersion()
getVersion |
void |
init()
This is an important and big method. |
boolean |
isChrom()
return true if current contig is real chromosome |
boolean |
isDangerous()
return true if action can destroy the applet. |
boolean |
isDefaultVisible()
show or not to show default curves |
boolean |
isIdle1()
return true if idle more than 20 min |
boolean |
isIdle2()
return true if idle more than 30 sec |
boolean |
isIdle3()
return true if idle more than 0.5 sec |
boolean |
isReady()
|
void |
lastPosition()
set status from previous position |
void |
nextPosition()
set status from nextPosition |
void |
printStatusBar(java.lang.String s)
show sring in the status bar |
void |
pushInHistory()
push curent status in history |
void |
refreshOrgList()
refresh organism list in the pull-dawn menu |
void |
release()
Do some work and refresh panels after slow operations, like data pulling |
void |
resetConnection()
set connection to null |
void |
resetCounter1()
start 20 min counter |
void |
resetCounter2()
start 30 sec counter |
void |
resetCounter3()
start 0.5 sec min counter |
void |
run()
Main thread of the applet. |
void |
setBaseGenome(GenomeInfo baseGenome)
set baseGenome |
void |
setChrom(java.lang.String chr)
set current chromosome |
void |
setDangerous(boolean d)
Some actions set dangerous field in true in order to disable other actions. |
static void |
setDebugLevel(java.lang.String dLevel)
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" |
void |
setDetailsActionEnabled(boolean flag)
call setEnabled(boolean) for detailsAction and detailsAction2 |
void |
setForwardBackBtns()
Enable od disable >> or/ond << button |
void |
setNewHeight(int nh)
setNewHeight |
boolean |
setNewSize(int width,
int height)
This method is called from JavaScript and sets new applet size. |
void |
setNewWidth(int nw)
setNewWidth |
void |
setOrgLabel(int org)
set orgLabel |
void |
setParam(java.lang.String param,
java.lang.Object val)
replace an object in the parameters Map |
void |
setPositionString(java.lang.String string)
set position (chromosome, start, end) from formated string |
void |
setPositionString(java.lang.String chr,
java.lang.String min,
java.lang.String max)
set position from parameters |
void |
setReady(boolean f)
|
void |
setSettingsVisible(boolean b)
Enable or disable settings actions |
void |
setUCSCActionTip(java.lang.String tip)
Set ToolTip for UCSC action button and menu. |
void |
startProgress(java.lang.String desc)
Start RIGHT-TOP DNA Icon rotation set ready(false), stop timers, disable GUI, write comment in the status bar |
void |
stopProgress()
Stop RIGHT-TOP DNA Icon rotation start timers, enable GUI, remove comment from the status bar |
void |
swapCurves()
Switch base genome. |
void |
testPosition(int minx,
int maxx)
testPosition |
void |
upDate()
currently Not used Check server for new and deleted curves and new versions since start time. |
void |
updateContig(java.lang.String s)
|
void |
updateCurrPosition(java.lang.String s)
|
boolean |
updatePosition()
updatePosition is a key method for geting curves. |
boolean |
updatePosition(long minX,
long maxX)
updatePosition is a key method for geting curves. |
boolean |
updatePosition(java.lang.String position)
updatePosition is a key method for geting curves. |
boolean |
updatePosition(java.lang.String chrom,
long minX,
long maxX)
updatePosition is a key method for geting curves. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
Stop dataPuller thread when closing |
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 javax.swing.JApplet |
---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.applet.Applet |
---|
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Resource resource
public static final java.lang.String RELEASE_DATE
public static boolean debugInit
public static boolean debugComm
public static boolean debugProgress
public static boolean debugAction
public boolean cuready
public boolean started
public boolean canResize
public boolean useParameters
public GeneSearchPanel geneSearchPanel
public static java.awt.Image legend
public java.awt.print.PrinterJob printJob
public java.awt.print.PageFormat pageFormat
public java.awt.print.Paper paper
public java.lang.String scrollbar
public static boolean debugException
Constructor Detail |
---|
public VistaApp()
Method Detail |
---|
public CommUnit getCommUnit()
public ErrorHandler getErrorHandler()
public boolean updatePosition()
updatePosition(String,long,long)
public boolean updatePosition(long minX, long maxX)
minX
- longmaxX
- long
updatePosition(String,long,long)
public java.lang.String getChrom(java.lang.String posString) throws java.lang.Exception
posString
- String
java.lang.Exception
public long getMinX(java.lang.String posString) throws java.lang.Exception
posString
- String
java.lang.Exception
public long getMaxX(java.lang.String posString) throws java.lang.Exception
posString
- String
java.lang.Exception
public boolean updatePosition(java.lang.String position)
position
- String
updatePosition(String,long,long)
public boolean updatePosition(java.lang.String chrom, long minX, long maxX)
chrom
- StringminX
- longmaxX
- long
public boolean isChrom()
public java.lang.String getPositionString()
public void setPositionString(java.lang.String chr, java.lang.String min, java.lang.String max) throws java.lang.Exception
chr
- Stringmin
- Stringmax
- String
java.lang.Exception
setPositionString(String)
public void setPositionString(java.lang.String string) throws java.lang.Exception
string
- String
java.lang.Exception
setPositionString(String,String,String)
public void lastPosition()
public void nextPosition()
public void pushInHistory()
public void setForwardBackBtns()
public GenomeInfo getBaseGenome()
public java.lang.String getSelectedOrg()
BaseInfoPanel.getSelectedOrg()
public void setOrgLabel(int org)
org
- intBaseInfoPanel.setOrgLabel(int)
public void setBaseGenome(GenomeInfo baseGenome)
baseGenome
- GenomeInfopublic long getMinX()
getMaxX(int)
,
getMinX(int)
,
getMaxX()
public long getMaxX()
getMaxX(int)
,
getMinX(int)
,
getMinX()
public long getMinX(int i)
i
- int
getMaxX()
,
getMaxX(int)
,
getMinX()
public long getMaxX(int i)
i
- int
getMaxX()
,
getMinX(int)
,
getMinX()
public int getConsIdentity()
public int getCalcWindow()
public int getMinY()
getMaxY(CurveInfo)
,
getMaxY()
public int getMinY(CurveInfo curve)
curve
- CurveInfo
getMaxY(CurveInfo)
,
getMaxY()
public int getMaxY()
getMinY(CurveInfo)
,
getMinY()
public int getMaxY(CurveInfo curve)
curve
- CurveInfo
getMinY(CurveInfo)
,
getMinY()
public int getConsWidth()
public boolean isDefaultVisible()
public void setChrom(java.lang.String chr)
chr
- Stringpublic java.lang.String getChrom()
public java.net.HttpURLConnection getConnection()
public java.io.InputStream getInputStream()
public void resetConnection()
public GenesInfo[] getGenesInfo()
GenesInfo
,
GenomeInfo.getGenesInfos()
public java.lang.String getDefaultGenes()
public java.io.OutputStream getOutputStream(java.lang.String type)
type
- String
public java.awt.Image getImage(java.lang.String name)
name
- String
public java.lang.String getTextbrowserURL()
public java.lang.String getRuns()
public java.lang.String getPos()
public java.lang.String getShow()
public java.lang.String getBG()
public void printStatusBar(java.lang.String s)
s
- Stringpublic void clearStatusBar()
public void stopProgress()
startProgress(String)
public void startProgress(java.lang.String desc)
desc
- String
#see stopProgress()public void init()
init
in class java.applet.Applet
public int getDataInterval()
public int getNumDataPoints()
public int getGraphWidth()
public int convertX(long X, int line, int offset, int width)
X
- doubleline
- intoffset
- intwidth
- int
convertX(double,int,int,int)
public int convertX(double X, int line, int offset, int width)
X
- doubleline
- intoffset
- intwidth
- int
public void updateCurrPosition(java.lang.String s)
s
- StringCursorInfoPanel.setPosition(String)
public void updateContig(java.lang.String s)
s
- StringCursorInfoPanel.setContig(String)
public DisplayPanel getDisplayPanel()
public javax.swing.AbstractAction getDetailsAction()
DetailsAction
public void setDetailsActionEnabled(boolean flag)
flag
- booleanpublic javax.swing.AbstractAction getSettingsAction()
SettingsAction
public javax.swing.AbstractAction getRemoveAction()
RemoveAction
public javax.swing.AbstractAction getStatAction()
StatAction
public java.lang.String getVersion()
public void enableGUI()
public void disableGUI()
public void setParam(java.lang.String param, java.lang.Object val)
param
- Stringval
- Objectpublic java.lang.String getParam(java.lang.String parName, java.lang.String defValue)
parName
- StringdefValue
- String
public int getParam(java.lang.String parName, int defValue)
parName
- StringdefValue
- int
public static void setDebugLevel(java.lang.String dLevel)
dLevel
- Stringpublic long getChromSize(java.lang.String chr) throws VGBException
chr
- String
VGBException
public long getChromSize() throws VGBException
VGBException
public void release()
public void setReady(boolean f)
f
- booleanisReady()
public boolean isReady()
setReady(boolean)
public void run()
run
in interface java.lang.Runnable
public void upDate()
up2date(String)
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- WindowEventpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void resetCounter1()
public void resetCounter2()
public void resetCounter3()
public boolean isIdle1()
public boolean isIdle2()
public boolean isIdle3()
public void freezeCounters(boolean f)
f
- booleanpublic static java.lang.String getRandomString(int length)
length
- int
public javax.swing.AbstractAction getAddAction()
public void checkCurves(java.lang.String pos)
pos
- StringCommUnit.checkCurves(Vector, String)
public void refreshOrgList()
public History getHistory()
public SwapCurvesAction getSwapCurvesAction()
public void swapCurves() throws java.lang.Exception
java.lang.Exception
public void setUCSCActionTip(java.lang.String tip)
tip
- Stringpublic void testPosition(int minx, int maxx)
minx
- intmaxx
- intpublic Element getDialogElement(java.lang.String name)
name
- String
public boolean setNewSize(int width, int height)
width
- intheight
- int
public void setNewWidth(int nw)
nw
- intsetNewSize(int,int)
public void setNewHeight(int nh)
nh
- intsetNewSize(int,int)
public int getNewWidth()
setNewWidth(int)
public int getNewHeight()
setNewHeight(int)
public void setSettingsVisible(boolean b)
b
- booleanpublic void enablePrinting(boolean key)
key
- booleanPrintAction.run()
,
PrinterSetupAction.run()
public void setDangerous(boolean d)
d
- booleanisDangerous()
public boolean isDangerous()
setDangerous(boolean)
,
startProgress(java.lang.String)
,
stopProgress()
public java.lang.String getPostHeader()
SaveAsAction.saveData(OutputStream,ByteArrayOutputStream)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |