jadex.swing.sequence
Class CloneControl

java.lang.Object
  |
  +--jadex.swing.map.DisplayControl
        |
        +--jadex.swing.sequence.CloneControl
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class CloneControl
extends DisplayControl

A subclass of DisplayControl to control CloneDisplay.


Fields inherited from class jadex.swing.map.DisplayControl
HIGHLIGHT_COLOR, NORMAL_COLOR, NUMBER_PER_COLUMN, pattern, patterns, showNumber, sLoci, sPoints, tPoints
 
Constructor Summary
CloneControl()
          Default constructor
CloneControl(CloneDisplay view)
          Second constructor with CloneDisplay as the argument
CloneControl(CloneDisplay view, CloneFetcher fetcher)
          Third constrcutor with clonedisplay and clonefetcher as the arguement
CloneControl(CloneDisplay view, DisplayModel model)
          Fourth constructor with clonedisplay and displaymodel as the argumetns
 
Method Summary
protected  void assignClones(java.util.List list)
          The algorithim to distribute the clones.
 java.util.List getAssignedClones()
          Get the distributed clones.
 java.util.List getClones()
          Get the clones displayed in the CloneDisplay.
 MapPointDisplay getDisplay()
          Return CloneDisplay implementing MapPointDisplay
protected  void resetUI()
          UI should be reset after total points or showing points in range have been changed.
 void setCloneDisplay(CloneDisplay view)
          Set the clonedisplay.
 void setCloneFetcher(CloneFetcher f)
          Set the clone fetcher, and get data from data source and initialize the clone model.
 void updateUI()
          Show the data in LocusDisplay: points, little bars, and default names This is the central points controled by this LocusControl.
 
Methods inherited from class jadex.swing.map.DisplayControl
checkKnobs, checkMapRange, deSearch, doSearch, getMapControl, getModel, getShowNumber, getTotalMapRange, getTotalShowNumber, movingDown, movingUp, propertyChange, reset, setKnobs, setMapControl, setMapRange, setModel, setShowNumber, setTotalMapRange, showLess, showMore, showReset, zoom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneControl

public CloneControl()
Default constructor

CloneControl

public CloneControl(CloneDisplay view)
Second constructor with CloneDisplay as the argument

CloneControl

public CloneControl(CloneDisplay view,
                    CloneFetcher fetcher)
Third constrcutor with clonedisplay and clonefetcher as the arguement

CloneControl

public CloneControl(CloneDisplay view,
                    DisplayModel model)
Fourth constructor with clonedisplay and displaymodel as the argumetns
Method Detail

setCloneDisplay

public void setCloneDisplay(CloneDisplay view)
Set the clonedisplay.
Parameters:
view - the CloneDisplay this object controls.

setCloneFetcher

public void setCloneFetcher(CloneFetcher f)
Set the clone fetcher, and get data from data source and initialize the clone model.
Parameters:
f - the CloneFetcher used for fetching data from AceDB, a file or some other sources.

getClones

public java.util.List getClones()
Get the clones displayed in the CloneDisplay.
Returns:
the clone list.

getAssignedClones

public java.util.List getAssignedClones()
Get the distributed clones.
Returns:
the distributed clones. This is a list of lists.

assignClones

protected void assignClones(java.util.List list)
The algorithim to distribute the clones.
Parameters:
list - the clones to be distributed.

getDisplay

public MapPointDisplay getDisplay()
Return CloneDisplay implementing MapPointDisplay
Overrides:
getDisplay in class DisplayControl
Following copied from class: jadex.swing.map.DisplayControl
Returns:
a MapPointDisplay showing mappoint data.

resetUI

protected void resetUI()
UI should be reset after total points or showing points in range have been changed.
Overrides:
resetUI in class DisplayControl

updateUI

public void updateUI()
Show the data in LocusDisplay: points, little bars, and default names This is the central points controled by this LocusControl. All changes will be through this method.
Overrides:
updateUI in class DisplayControl