ExPASy Home page Site Map Search ExPASy Contact us Proteomics tools
Hosted by NCSC USMirror sites:Canada China Korea Switzerland Taiwan
Search for

Class BioGraph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----BioGraph

public class BioGraph
extends Applet
implements Runnable

Variable Index

 o aHeight
 o aWidth
 o BTFactor
 o BTGrid
 o BTLegend
 o BTLog
 o BTScale
 o BTTolerance
 o cmdPanel
 o draggableCanvas
 o dragPosition
key and mouse draggable canvas services
 o isDragging
 o isFetched
 o MassAbout
 o MassGraph
 o MassNames
 o MassTitle
 o MassVector
 o MassVectors
 o MassZoom
 o MatchLabel
 o Peaks
 o PeptAnnotation
 o updateThread
we need a thread to update graphics, thats how games work, gee this is so cool!
 o V_INTERVAL
unless you want to stall the machine, it's useful to sleep once in a while
 o zBuffer
double buffer, for simplicity we paint regularly instead of repainting regions and invalidating sections
 o zBufferGraphics

Constructor Index

 o BioGraph()
default constructor, well, this does actually nothing, but is is considered as _correct_ to make a void constructor and a copy constructor (too lazy to do that:)

Method Index

 o destroy()
 o getAppletInfo()
 o init()
Applet input can be a series of PeaksX (Peaks1, Peaks2, etc...) of PeptVect readable values (check PeptVect annotations) with PeaksXName for graph annotations
 o keyDown(Event, int)
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseMove(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
since we do double-buffer, this should be empty
 o paintAll(Graphics)
 o paintComponents(Graphics)
 o print(Graphics)
 o printAll(Graphics)
 o printComponents(Graphics)
unfortunately this does not work under Java 1.0, when run with full Java 1.1 api, printing works just fine in BioGraph
 o Reshape()
 o run()
 o start()
 o stop()
 o Update()
 o update(Graphics)
 o zzBack(Graphics)
 o zzDynamic()
dynamic painting of each active or passive element, such as vectors and text
 o zzOptions()
adjust options at every loop
 o zzStatic()
static painting

Variables

 o isDragging
 private boolean isDragging
 o isFetched
 private boolean isFetched
 o zBuffer
 private Image zBuffer
double buffer, for simplicity we paint regularly instead of repainting regions and invalidating sections

 o zBufferGraphics
 private Graphics zBufferGraphics
 o aWidth
 public static int aWidth
 o aHeight
 public static int aHeight
 o BTGrid
 private Checkbox BTGrid
 o BTFactor
 private Checkbox BTFactor
 o BTLog
 private Checkbox BTLog
 o BTScale
 private Checkbox BTScale
 o BTLegend
 private Checkbox BTLegend
 o BTTolerance
 private Choice BTTolerance
 o MassGraph
 private IMassGraph MassGraph
 o MassZoom
 private IMassZoom MassZoom
 o MassTitle
 private DragText MassTitle
 o MassAbout
 private DragText MassAbout
 o PeptAnnotation
 private DragText PeptAnnotation
 o MassVectors
 private Vector MassVectors
 o MassNames
 private Vector MassNames
 o MassVector
 private PeptVect MassVector
 o MatchLabel
 private Label MatchLabel
 o Peaks
 String Peaks
 o cmdPanel
 private Panel cmdPanel
 o updateThread
 private Thread updateThread
we need a thread to update graphics, thats how games work, gee this is so cool!

 o V_INTERVAL
 private static final int V_INTERVAL
unless you want to stall the machine, it's useful to sleep once in a while

 o dragPosition
 public Point dragPosition
key and mouse draggable canvas services

 o draggableCanvas
 public static Vector draggableCanvas

Constructors

 o BioGraph
 public BioGraph()
default constructor, well, this does actually nothing, but is is considered as _correct_ to make a void constructor and a copy constructor (too lazy to do that:)

Methods

 o getAppletInfo
 public String getAppletInfo()
Overrides:
getAppletInfo in class Applet
 o init
 public void init()
Applet input can be a series of PeaksX (Peaks1, Peaks2, etc...) of PeptVect readable values (check PeptVect annotations) with PeaksXName for graph annotations

Overrides:
init in class Applet
 o zzStatic
 private void zzStatic()
static painting

 o zzOptions
 private void zzOptions()
adjust options at every loop

 o zzDynamic
 private void zzDynamic()
dynamic painting of each active or passive element, such as vectors and text

 o zzBack
 private void zzBack(Graphics g)
 o destroy
 public void destroy()
Overrides:
destroy in class Applet
 o paint
 public void paint(Graphics g)
since we do double-buffer, this should be empty

Overrides:
paint in class Container
 o start
 public void start()
Overrides:
start in class Applet
 o stop
 public void stop()
Overrides:
stop in class Applet
 o run
 public void run()
 o keyDown
 public boolean keyDown(Event evt,
                        int key)
Overrides:
keyDown in class Component
 o mouseDown
 public boolean mouseDown(Event evt,
                          int x,
                          int y)
Overrides:
mouseDown in class Component
 o mouseDrag
 public boolean mouseDrag(Event evt,
                          int x,
                          int y)
Overrides:
mouseDrag in class Component
 o mouseMove
 public boolean mouseMove(Event evt,
                          int x,
                          int y)
Overrides:
mouseMove in class Component
 o mouseUp
 public boolean mouseUp(Event evt,
                        int x,
                        int y)
Overrides:
mouseUp in class Component
 o Reshape
 public void Reshape()
 o printComponents
 public void printComponents(Graphics g)
unfortunately this does not work under Java 1.0, when run with full Java 1.1 api, printing works just fine in BioGraph

Overrides:
printComponents in class Container
 o paintComponents
 public void paintComponents(Graphics g)
Overrides:
paintComponents in class Container
 o print
 public void print(Graphics g)
Overrides:
print in class Container
 o printAll
 public void printAll(Graphics g)
Overrides:
printAll in class Component
 o paintAll
 public void paintAll(Graphics g)
Overrides:
paintAll in class Component
 o update
 public void update(Graphics g)
Overrides:
update in class Container
 o Update
 private synchronized void Update()
ExPASy Home page Site Map Search ExPASy Contact us Proteomics tools
Hosted by NCSC USMirror sites:Canada China Korea Switzerland Taiwan