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
-
aHeight
-
-
aWidth
-
-
BTFactor
-
-
BTGrid
-
-
BTLegend
-
-
BTLog
-
-
BTScale
-
-
BTTolerance
-
-
cmdPanel
-
-
draggableCanvas
-
-
dragPosition
- key and mouse draggable canvas services
-
isDragging
-
-
isFetched
-
-
MassAbout
-
-
MassGraph
-
-
MassNames
-
-
MassTitle
-
-
MassVector
-
-
MassVectors
-
-
MassZoom
-
-
MatchLabel
-
-
Peaks
-
-
PeptAnnotation
-
-
updateThread
- we need a thread to update graphics, thats how games work, gee
this is so cool!
-
V_INTERVAL
- unless you want to stall the machine, it's useful to sleep once in a while
-
zBuffer
- double buffer, for simplicity we paint regularly instead of
repainting regions and invalidating sections
-
zBufferGraphics
-
-
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:)
-
destroy()
-
-
getAppletInfo()
-
-
init()
- Applet input can be a series of PeaksX (Peaks1, Peaks2, etc...) of PeptVect
readable values (check PeptVect annotations) with PeaksXName for graph
annotations
-
keyDown(Event, int)
-
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseMove(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
- since we do double-buffer, this should be empty
-
paintAll(Graphics)
-
-
paintComponents(Graphics)
-
-
print(Graphics)
-
-
printAll(Graphics)
-
-
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
-
Reshape()
-
-
run()
-
-
start()
-
-
stop()
-
-
Update()
-
-
update(Graphics)
-
-
zzBack(Graphics)
-
-
zzDynamic()
- dynamic painting of each active or passive element,
such as vectors and text
-
zzOptions()
- adjust options at every loop
-
zzStatic()
- static painting
isDragging
private boolean isDragging
isFetched
private boolean isFetched
zBuffer
private Image zBuffer
- double buffer, for simplicity we paint regularly instead of
repainting regions and invalidating sections
zBufferGraphics
private Graphics zBufferGraphics
aWidth
public static int aWidth
aHeight
public static int aHeight
BTGrid
private Checkbox BTGrid
BTFactor
private Checkbox BTFactor
BTLog
private Checkbox BTLog
BTScale
private Checkbox BTScale
BTLegend
private Checkbox BTLegend
BTTolerance
private Choice BTTolerance
MassGraph
private IMassGraph MassGraph
MassZoom
private IMassZoom MassZoom
MassTitle
private DragText MassTitle
MassAbout
private DragText MassAbout
PeptAnnotation
private DragText PeptAnnotation
MassVectors
private Vector MassVectors
MassNames
private Vector MassNames
MassVector
private PeptVect MassVector
MatchLabel
private Label MatchLabel
Peaks
String Peaks
cmdPanel
private Panel cmdPanel
updateThread
private Thread updateThread
- we need a thread to update graphics, thats how games work, gee
this is so cool!
V_INTERVAL
private static final int V_INTERVAL
- unless you want to stall the machine, it's useful to sleep once in a while
dragPosition
public Point dragPosition
- key and mouse draggable canvas services
draggableCanvas
public static Vector draggableCanvas
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:)
getAppletInfo
public String getAppletInfo()
- Overrides:
- getAppletInfo in class Applet
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
zzStatic
private void zzStatic()
- static painting
zzOptions
private void zzOptions()
- adjust options at every loop
zzDynamic
private void zzDynamic()
- dynamic painting of each active or passive element,
such as vectors and text
zzBack
private void zzBack(Graphics g)
destroy
public void destroy()
- Overrides:
- destroy in class Applet
paint
public void paint(Graphics g)
- since we do double-buffer, this should be empty
- Overrides:
- paint in class Container
start
public void start()
- Overrides:
- start in class Applet
stop
public void stop()
- Overrides:
- stop in class Applet
run
public void run()
keyDown
public boolean keyDown(Event evt,
int key)
- Overrides:
- keyDown in class Component
mouseDown
public boolean mouseDown(Event evt,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event evt,
int x,
int y)
- Overrides:
- mouseDrag in class Component
mouseMove
public boolean mouseMove(Event evt,
int x,
int y)
- Overrides:
- mouseMove in class Component
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- Overrides:
- mouseUp in class Component
Reshape
public void Reshape()
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
paintComponents
public void paintComponents(Graphics g)
- Overrides:
- paintComponents in class Container
print
public void print(Graphics g)
- Overrides:
- print in class Container
printAll
public void printAll(Graphics g)
- Overrides:
- printAll in class Component
paintAll
public void paintAll(Graphics g)
- Overrides:
- paintAll in class Component
update
public void update(Graphics g)
- Overrides:
- update in class Container
Update
private synchronized void Update()