jadex.swing.map
Class LocusControl

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

public class LocusControl
extends DisplayControl

This is a control class for LocusDisplay. All control activities will be placed here. This class can listen to "zoom" property change event.


Fields inherited from class jadex.swing.map.DisplayControl
HIGHLIGHT_COLOR, NORMAL_COLOR, NUMBER_PER_COLUMN, pattern, patterns, showNumber, sLoci, sPoints, tPoints
 
Constructor Summary
LocusControl()
          Default constructor.
LocusControl(DisplayModel m)
          Overloaded constructor.
LocusControl(DisplayModel m, LocusDisplay d)
          overloaded constructor.
LocusControl(LocusDisplay d)
          Overloaded constructor.
 
Method Summary
 MapPointDisplay getDisplay()
          Get the display.
 int getShowNumber()
          The number of shown LocusUI.
protected  void resetUI()
          Reset UI whenever the MapRange changed.
 void setDisplay(LocusDisplay d)
          Set the LocusDisplay.
 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, 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

LocusControl

public LocusControl()
Default constructor.

LocusControl

public LocusControl(DisplayModel m)
Overloaded constructor.
Parameters:
m - the DisplayModel holding all data to be displayed.

LocusControl

public LocusControl(LocusDisplay d)
Overloaded constructor.
Parameters:
d - the LocusDisplay this control controls.

LocusControl

public LocusControl(DisplayModel m,
                    LocusDisplay d)
overloaded constructor.
Parameters:
m - the DisplayModel holding all data.
d - the LocusDisplay this control controls.
Method Detail

setDisplay

public void setDisplay(LocusDisplay d)
Set the LocusDisplay.
Parameters:
d - the LocusDisplay this control controls.

getDisplay

public MapPointDisplay getDisplay()
Get the display.
Overrides:
getDisplay in class DisplayControl
Returns:
the MapPointDisplay, which is the superclass of LocusDisplay.

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

resetUI

protected void resetUI()
Reset UI whenever the MapRange changed.
Overrides:
resetUI in class DisplayControl

getShowNumber

public int getShowNumber()
The number of shown LocusUI.
Overrides:
getShowNumber in class DisplayControl
Following copied from class: jadex.swing.map.DisplayControl
Returns:
the number of shown LocusUI.