jadex.swing.classView
Class MapView

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

public class MapView
extends ClassView

This MapView is used to display Genetic_map. Please note: This is not the MapView for SequenceMap or SequenceView. For SequenceMap, use SequenceMapView class. For SequenceView, use SequenceView class.


Constructor Summary
MapView()
          Default constructor.
MapView(jade.db.AceObject o)
          An overloaded constructor.
MapView(jade.db.AceObject o, java.applet.Applet a)
          Another constructor for applet
 
Method Summary
 jade.db.AceObject getObject()
          Get the Aceobject displayed.
 javax.swing.JComponent getView()
          Get the JComponent for displaying the AceObject.
 javax.swing.JFrame getViewFrame()
          Get the JFrame holding all these displays.
 boolean isApplet()
          See if this MapView is in an applet or not.
static void main(java.lang.String[] args)
          A test method for this MapView.
 void search(java.lang.String cls, java.lang.String pattern)
          Search Intercal or Locus by their names.
 void setFrame()
          Setup the JFrame.
 void setInterval()
          Create the intervalContainer.
 void setInterval(java.lang.Object[][] intervals)
          Set up the data and create the intervalContainer.
 void setLocus()
          Set the Locus display.
 void setLocus(java.lang.Object[][] loci)
          Set the Locus display by using data from loci.
 void setMarker()
          Set the Marker Panel contents.
 void setMarker(java.lang.Object[][] loci)
          Set the marker Panel contents by using data from Array loci.
 void setObject(jade.db.AceObject object)
          Set the AceObject to be displayed.
 void setTitle(java.lang.String t)
          Set the JFrame's title.
 void setView(javax.swing.JComponent comp)
          Set the JComponent for displaying the AceObject.
 void showInterval(boolean show)
          Display intervalContainer or not.
 void showLeftScale(boolean show)
          Control if the Mapscale on the left should be displayed.
 void showLocator(boolean show)
          Control if the locator should be displayed.
 void showLocus(boolean show)
          Control if the Locus Panel should be displayed or not.
 void showMarker(boolean show)
          Control if the marker should be displayed.
 void showRightScale(boolean show)
          Control if the MapScale on the right should be displayed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapView

public MapView()
Default constructor.

MapView

public MapView(jade.db.AceObject o)
        throws java.lang.ClassCastException
An overloaded constructor.
Parameters:
o - the AceObject to be displayed.
Throws:
If - this AceObject is not a genetic_map class, throw a classCastException.

MapView

public MapView(jade.db.AceObject o,
               java.applet.Applet a)
        throws java.lang.ClassCastException
Another constructor for applet
Parameters:
o - the AceObject to be displayed.
a - the Applet this MapView is in.
Throws:
If - this AceObject is not a genetic_map class, throw a classCastException.
Method Detail

setObject

public void setObject(jade.db.AceObject object)
Set the AceObject to be displayed.
Overrides:
setObject in class ClassView
Parameters:
object - the AceObject to be displayed.

setTitle

public void setTitle(java.lang.String t)
Set the JFrame's title.
Parameters:
t - the title for the JFrame.

setFrame

public void setFrame()
Setup the JFrame. The method name should be changed to SetupFrame. This is a very bad method, and serveral other methods should be refactored out. Basically, this method initializes all displays and layouts them.

setMarker

public void setMarker()
Set the Marker Panel contents.

setMarker

public void setMarker(java.lang.Object[][] loci)
Set the marker Panel contents by using data from Array loci.
Parameters:
loci - the marker data.

showMarker

public void showMarker(boolean show)
Control if the marker should be displayed.
Parameters:
show - true, show Marker; false, turn off marker.

showLocator

public void showLocator(boolean show)
Control if the locator should be displayed.
Parameters:
show - true, show locator; false, turn off locator.

showLeftScale

public void showLeftScale(boolean show)
Control if the Mapscale on the left should be displayed.
Parameters:
show - true, on; false, off.

showRightScale

public void showRightScale(boolean show)
Control if the MapScale on the right should be displayed.
Parameters:
show - true, on; false, off.

setLocus

public void setLocus()
Set the Locus display.

showLocus

public void showLocus(boolean show)
Control if the Locus Panel should be displayed or not.
Parameters:
show - true, on; false, off.

setLocus

public void setLocus(java.lang.Object[][] loci)
Set the Locus display by using data from loci.
Parameters:
loci - the data to be used for locus display.

setInterval

public void setInterval()
Create the intervalContainer.

showInterval

public void showInterval(boolean show)
Display intervalContainer or not.
Parameters:
show - true, on; false, off.

setInterval

public void setInterval(java.lang.Object[][] intervals)
Set up the data and create the intervalContainer.
Parameters:
interals - the data to be used for setup the intercalcontainer.

getObject

public jade.db.AceObject getObject()
Get the Aceobject displayed.
Overrides:
getObject in class ClassView
Returns:
the displayed AceObject.

getView

public javax.swing.JComponent getView()
Get the JComponent for displaying the AceObject.
Overrides:
getView in class ClassView
Returns:
the JComponent displaying the AceObject.

getViewFrame

public javax.swing.JFrame getViewFrame()
Get the JFrame holding all these displays.
Overrides:
getViewFrame in class ClassView
Returns:
the JFrame holding all these displays.

setView

public void setView(javax.swing.JComponent comp)
Set the JComponent for displaying the AceObject.
Overrides:
setView in class ClassView
Parameters:
comp - the JComponent displaying the AceObject.

isApplet

public boolean isApplet()
See if this MapView is in an applet or not.
Returns:
true, in an applet; false, not in an applet.

search

public void search(java.lang.String cls,
                   java.lang.String pattern)
Search Intercal or Locus by their names.
Parameters:
cls - the class to be searched, either Intercal or Locus.
pattern - the searching key.

main

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