|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jadex.swing.map.DisplayModel
This is a datamodel used for both GeneticMap and SequenceMap displays.
Constructor Summary | |
DisplayModel()
Creates new DisplayModel |
Method Summary | |
void |
addPoint(MapPoint p)
Add a MapPoint. |
java.util.Vector |
assignPoints(float rel)
Distribute all MapPoints. |
protected void |
assignPoints(MapPoint[] l,
float rel)
Distribute a MapPoint array. |
java.util.Comparator |
getComparator()
Get the comparator for sorting the MapPoints. |
MapPoint[] |
getData()
Get all MapPoint in an array. |
MapPoint[] |
getMapPoints(int size)
Get the MapPointn with the number of size. |
MapPoint[] |
getMapPoints(MapRange r)
Giving a maprange, get all mappoints in this range. |
MapPoint[] |
getMapPoints(MapRange r,
int number)
Giving a maprange and showing number, get the mappoints. |
void |
setComparator(java.util.Comparator comp)
Set the comparator for sorting the MapPoints. |
void |
setData(java.util.List l)
Set the total displayable MapPoint data. |
void |
setData(MapPoint[] points)
Set the total displayable MapPoint data from a MapPoint array. |
void |
setData(java.util.Vector v)
Vector is a collection of MapPoint to be displayed. |
void |
sort()
Sort all MapPoints. |
void |
sort(java.util.Comparator comp)
Sort all MapPoints by a specified comparator. |
void |
sort(java.util.List points)
Sort a MapPoint list by using the default Comparator. |
void |
sort(MapPoint[] points)
Sort a MapPoint array by using defalt comparator. |
void |
sort(MapPoint[] points,
java.util.Comparator comp)
A utility for sorting a MapPoint array using a Comparator. |
void |
sortByError()
Sort all MapPoints by position errors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DisplayModel()
Method Detail |
public void addPoint(MapPoint p)
p
- a MapPoint to be added.public void setData(java.util.Vector v)
v
- the MapPoint data that can be displayed.public void setData(java.util.List l)
l
- a list holding all MapPoints.public void setData(MapPoint[] points)
points
- a MapPoint array holding all data.public MapPoint[] getData()
public MapPoint[] getMapPoints(int size)
size
- the number of the MapPoints to be got.public MapPoint[] getMapPoints(MapRange r)
r
- the MapRange limiting the query.public MapPoint[] getMapPoints(MapRange r, int number)
r
- the MapRange limiting the query.number
- the number of the MapPoints to be queried.public void setComparator(java.util.Comparator comp)
comp
- the comparator for sorting the MapPoints.public java.util.Comparator getComparator()
public void sort()
public void sortByError()
public void sort(java.util.Comparator comp)
comp
- a Comparator used for sorting all MapPoints.public void sort(MapPoint[] points, java.util.Comparator comp)
points
- the MapPoint array to be sorted.comp
- the Comparator for sorting the MapPoint arrays.public void sort(MapPoint[] points)
points
- a MapPoint array to be sorted.public void sort(java.util.List points)
points
- a MapPoint List to be sorted.public java.util.Vector assignPoints(float rel)
rel
- the ratio between the biological distance (e.g., genetic or
sequence distances) and graphic distance.protected void assignPoints(MapPoint[] l, float rel)
l
- the data to be distributed.rel
- the ratio.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |