|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.gui.viewer.SingleAlignmentSelectionModel
SingleAlignmentSelectionModel.java Created: Mon Apr 10 11:59:44 2000
Constructor Summary | |
SingleAlignmentSelectionModel()
|
Method Summary | |
void |
addAlignmentSelectionListener(AlignmentSelectionListener listener)
|
void |
clearSelection()
Clear all the selections in this model |
void |
extendSelection(SequenceAlignmentPoint point)
Start a selection at the given point |
SequenceAlignmentRectangle |
getCurrentSelection()
Returns the current selection or null if there is no selection. |
int |
getNumberSelections()
Get the number of selections. |
SequenceAlignmentRectangle |
getRectangleAtPoint(SequenceAlignmentPoint point)
Get the first selection rectangle which surrounds the point, or null if there is not one. |
SequenceAlignmentRectangle[] |
getRectanglesAtPoint(SequenceAlignmentPoint point)
Get all selection rectangles which surround this point, or null if there is not one |
SequenceAlignmentRectangle |
getSelectionAt(int index)
Gets the given selection. |
boolean |
isPointSelected(SequenceAlignmentPoint point)
Is the point within one of the selection rectangles |
boolean |
isSelecting()
is the current selection in the process of being selected. |
void |
removeAlignmentSelectionListener(AlignmentSelectionListener listener)
|
void |
stopSelection(SequenceAlignmentPoint point)
Complete the selection at the given point |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SingleAlignmentSelectionModel()
Method Detail |
public boolean isSelecting()
AlignmentSelectionModel
isSelecting
in interface AlignmentSelectionModel
public SequenceAlignmentRectangle getCurrentSelection()
AlignmentSelectionModel
getCurrentSelection
in interface AlignmentSelectionModel
public int getNumberSelections()
AlignmentSelectionModel
getNumberSelections
in interface AlignmentSelectionModel
public SequenceAlignmentRectangle getSelectionAt(int index) throws ArrayIndexOutOfBoundsException
AlignmentSelectionModel
getSelectionAt
in interface AlignmentSelectionModel
index
- the index
ArrayIndexOutOfBoundsException
- if the index is out of boundspublic boolean isPointSelected(SequenceAlignmentPoint point)
AlignmentSelectionModel
isPointSelected
in interface AlignmentSelectionModel
point
- the point
public void clearSelection()
AlignmentSelectionModel
clearSelection
in interface AlignmentSelectionModel
public SequenceAlignmentRectangle getRectangleAtPoint(SequenceAlignmentPoint point)
AlignmentSelectionModel
getRectangleAtPoint
in interface AlignmentSelectionModel
point
- the point in question
public SequenceAlignmentRectangle[] getRectanglesAtPoint(SequenceAlignmentPoint point)
AlignmentSelectionModel
getRectanglesAtPoint
in interface AlignmentSelectionModel
point
- the point in question
public void extendSelection(SequenceAlignmentPoint point)
AlignmentSelectionModel
extendSelection
in interface AlignmentSelectionModel
point
- the start of the selectionpublic void stopSelection(SequenceAlignmentPoint point)
AlignmentSelectionModel
stopSelection
in interface AlignmentSelectionModel
point
- the point to complete the selectionpublic void addAlignmentSelectionListener(AlignmentSelectionListener listener)
addAlignmentSelectionListener
in interface AlignmentSelectionModel
public void removeAlignmentSelectionListener(AlignmentSelectionListener listener)
removeAlignmentSelectionListener
in interface AlignmentSelectionModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |