|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jadex.swing.map.DisplayControl
This is a control class for LocusDisplay. All control activities will be placed here. It can listen to "zoom" property change event
Field Summary | |
java.awt.Color |
HIGHLIGHT_COLOR
|
java.awt.Color |
NORMAL_COLOR
|
static int |
NUMBER_PER_COLUMN
|
protected java.lang.String |
pattern
|
protected java.lang.String[] |
patterns
|
protected int |
showNumber
|
protected LocusUI[] |
sLoci
|
protected MapPoint[] |
sPoints
|
protected MapPoint[] |
tPoints
|
Constructor Summary | |
DisplayControl()
Default constructor. |
|
DisplayControl(DisplayModel m)
An overloaded constructor. |
Method Summary | |
void |
checkKnobs()
Check the arrow of two knobs. |
protected void |
checkMapRange(MapRange r)
See if the maprange is out of the full scale. |
void |
deSearch()
Remove all label and close all extra locusUI. |
void |
doSearch(java.lang.String pat)
Consider to change this method in the future. |
abstract MapPointDisplay |
getDisplay()
Display should be provided by subclass. |
MapControl |
getMapControl()
Get the central controller. |
DisplayModel |
getModel()
Get the DisplayModel this control controlled. |
int |
getShowNumber()
Get the number of shown LocusUI. |
MapRange |
getTotalMapRange()
Get the total MapRange. |
int |
getTotalShowNumber()
Get the TotalShowNumber in this displayed maprange. |
void |
movingDown()
Moving down the displayed range by knob. |
void |
movingUp()
Moving up the displayed range by knob. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
PropertyChangeListener method: for zoom property fired by mapcontrol |
void |
reset()
Reset to the whole chromosome range. |
protected abstract void |
resetUI()
UI should be reset after total points or showing points in range have been changed. |
void |
setKnobs(Knob top,
Knob bottom)
set knobs in this display: Assume all display have knobs. |
void |
setMapControl(MapControl c)
MapControl is always the central controller. |
void |
setMapRange(MapRange r)
MapRange is set by this control class. |
void |
setModel(DisplayModel m)
DisplayModel can be set: A property of this class |
void |
setShowNumber(int number)
Showing mappoint with the total number of number. |
void |
setTotalMapRange(MapRange r)
Set the total maprange. |
void |
showLess()
Show less. |
void |
showMore()
Show more. |
void |
showReset()
Show reset. |
abstract void |
updateUI()
Update UI after search or desearch |
void |
zoom(MapRange r)
Do zooming. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int NUMBER_PER_COLUMN
public java.awt.Color HIGHLIGHT_COLOR
public java.awt.Color NORMAL_COLOR
protected int showNumber
protected MapPoint[] tPoints
protected MapPoint[] sPoints
protected LocusUI[] sLoci
protected java.lang.String pattern
protected java.lang.String[] patterns
Constructor Detail |
public DisplayControl()
public DisplayControl(DisplayModel m)
m
- the DisplayModel.Method Detail |
public void setKnobs(Knob top, Knob bottom)
top
- the top knob.bottom
- the bottom knob.public void setModel(DisplayModel m)
m
- the DisplayModel.public DisplayModel getModel()
public void setMapControl(MapControl c)
c
- the central controller for all zooming activities.public MapControl getMapControl()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
java.beans.PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source
and the property that has changed.public void zoom(MapRange r)
r
- the maprange to be zoomed in.public void setTotalMapRange(MapRange r)
t
- the total MapRange in this DisplayControl.public MapRange getTotalMapRange()
public void setMapRange(MapRange r)
r
- the MapRange will be be displayed.protected void checkMapRange(MapRange r)
public int getTotalShowNumber()
public void reset()
public void showMore()
public void showLess()
public void showReset()
public void setShowNumber(int number)
number
- the showing number of mappoints.public void movingUp()
public void movingDown()
public void checkKnobs()
public abstract MapPointDisplay getDisplay()
public void doSearch(java.lang.String pat)
public void deSearch()
public int getShowNumber()
protected abstract void resetUI()
public abstract void updateUI()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |