Class pmr.cml.MySequence
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.cml.MySequence
java.lang.Object
|
+----pmr.simplegraph.DrawableObject
|
+----pmr.cml.BasicSequence
|
+----pmr.cml.ProteinSequence
|
+----pmr.cml.MySequence
- public class MySequence
- extends ProteinSequence
a simple illustration of how to extand a class
- Author:
- (C) P.Murray-Rust, 1996
-
MySequence(String)
-
-
display()
- this creates a ScrollableTopLevel and gets the Graphics context from it
-
display(Graphics)
- a fun routine which plots the sequence (using the superclass) and then
draws a plot underneath
-
main(String[])
- read a SwissProt, extract the sequence, create a MySequence object,
plot the sequence, and a property
-
process()
- only process the data once and avoid doing it during the graphics plot
MySequence
public MySequence(String seq)
process
public void process()
- only process the data once and avoid doing it during the graphics plot
- Overrides:
- process in class ProteinSequence
display
public void display()
- this creates a ScrollableTopLevel and gets the Graphics context from it
- Overrides:
- display in class DrawableObject
display
public void display(Graphics g)
- a fun routine which plots the sequence (using the superclass) and then
draws a plot underneath
- Overrides:
- display in class ProteinSequence
main
public static void main(String args[])
- read a SwissProt, extract the sequence, create a MySequence object,
plot the sequence, and a property
All Packages Class Hierarchy This Package Previous Next Index