jadex.swing.classView
Class SequenceView

java.lang.Object
  |
  +--jadex.swing.classView.ClassView
        |
        +--jadex.swing.classView.SequenceView

public class SequenceView
extends ClassView

A Sequence graphics view for chromosome and other sequence objects


Field Summary
static java.lang.String WORMBASE
          This is a URL address all XML files of chromosomes should be in.
 
Constructor Summary
SequenceView()
          Creates new SequenceView
SequenceView(java.lang.String name)
          Second constructor
 
Method Summary
 void clear()
          Clear up.
 jade.db.AceObject getObject()
          No aceobject anymore.
 javax.swing.JComponent getView()
          Get the JComponent holding this SequenceView.
 javax.swing.JFrame getViewFrame()
          Override the super method.
static void main(java.lang.String[] args)
          A test method.
 void search(java.lang.String name)
          Search a sequence object in the displayed chromosome.
 void setObject(jade.db.AceObject object)
          AceObject will not be supported anymore.
 void setSequence(java.lang.String name)
          Set the name of the chromosome to be displayed.
 void setView(javax.swing.JComponent comp)
          Do nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORMBASE

public static java.lang.String WORMBASE
This is a URL address all XML files of chromosomes should be in. This line must be changed.
Constructor Detail

SequenceView

public SequenceView()
Creates new SequenceView

SequenceView

public SequenceView(java.lang.String name)
Second constructor
Parameters:
name - the chromosome name
Method Detail

setSequence

public void setSequence(java.lang.String name)
Set the name of the chromosome to be displayed.
Parameters:
name - the name of the chromosome to be displayed, e.g., Chromosome_I.

search

public void search(java.lang.String name)
Search a sequence object in the displayed chromosome.
Parameters:
name - the name of the sequence object to be searched.

setObject

public void setObject(jade.db.AceObject object)
               throws java.lang.UnsupportedOperationException
AceObject will not be supported anymore. However, this method is still used to integate the sequenceview into Java AceDB browser for the time being.
Overrides:
setObject in class ClassView
Parameters:
object - the AceObject to be displayed.
Throws:
java.lang.UnsupportedOperationException - if this sequence view cannot be displayed.

getObject

public jade.db.AceObject getObject()
No aceobject anymore.
Overrides:
getObject in class ClassView
Returns:
null

getView

public javax.swing.JComponent getView()
Get the JComponent holding this SequenceView.
Overrides:
getView in class ClassView
Returns:
the JComponent holding this SequenceView.

setView

public void setView(javax.swing.JComponent comp)
Do nothing. Never call this method.
Overrides:
setView in class ClassView
Following copied from class: jadex.swing.classView.ClassView
Parameters:
comp - the JComponent to be used for displaying this AceObject.

getViewFrame

public javax.swing.JFrame getViewFrame()
Override the super method. Get the JFrame displaying this SequenceView.
Overrides:
getViewFrame in class ClassView
Returns:
the JFrame displaying this SequenceView.

clear

public void clear()
Clear up.

main

public static void main(java.lang.String[] args)
A test method.