Class pmr.molecule.MySequence
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.molecule.MySequence

java.lang.Object
   |
   +----pmr.simplegraph.DrawableObject
           |
           +----pmr.molecule.BasicSequence
                   |
                   +----pmr.molecule.ProteinSequence
                           |
                           +----pmr.molecule.MySequence

public class MySequence
extends ProteinSequence
a simple illustration of how to extand a class
Author:
(C) P.Murray-Rust, 1996

Constructor Index

 o MySequence(String)

Method Index

 o display()
this creates a ScrollableTopLevel and gets the Graphics context from it
 o display(Graphics)
a fun routine which plots the sequence (using the superclass) and then draws a plot underneath
 o main(String[])
read a SwissProt, extract the sequence, create a MySequence object, plot the sequence, and a property
 o process()
only process the data once and avoid doing it during the graphics plot

Constructors

 o MySequence
  public MySequence(String seq)

Methods

 o process
  public void process()
only process the data once and avoid doing it during the graphics plot
Overrides:
process in class ProteinSequence
 o display
  public void display()
this creates a ScrollableTopLevel and gets the Graphics context from it
Overrides:
display in class DrawableObject
 o 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
 o 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