|
||||||||||
| 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.NullAlignmentSelectionModel
NullAlignmentSelectionModel.java Trivial selection model. Returns 0 or false for everything, and ignores selection events. Created: Mon Jan 15 13:09:41 2001
| Method Summary | |
void |
addAlignmentSelectionListener(AlignmentSelectionListener listener)
|
void |
clearSelection()
Clear all the selections in this model |
void |
clearSelection(SequenceAlignmentRectangle rectangle)
|
void |
extendSelection(SequenceAlignmentPoint point)
Start a selection at the given point |
SequenceAlignmentRectangle |
getCurrentSelection()
Returns the current selection or null if there is no selection. |
static NullAlignmentSelectionModel |
getInstance()
|
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 |
| Method Detail |
public static NullAlignmentSelectionModel getInstance()
public boolean isSelecting()
AlignmentSelectionModel
isSelecting in interface AlignmentSelectionModelpublic SequenceAlignmentRectangle getCurrentSelection()
AlignmentSelectionModel
getCurrentSelection in interface AlignmentSelectionModelpublic int getNumberSelections()
AlignmentSelectionModel
getNumberSelections in interface AlignmentSelectionModel
public SequenceAlignmentRectangle getSelectionAt(int index)
throws ArrayIndexOutOfBoundsException
AlignmentSelectionModel
getSelectionAt in interface AlignmentSelectionModelindex - the index
ArrayIndexOutOfBoundsException - if the index is out of boundspublic boolean isPointSelected(SequenceAlignmentPoint point)
AlignmentSelectionModel
isPointSelected in interface AlignmentSelectionModelpoint - the point
public void clearSelection()
AlignmentSelectionModel
clearSelection in interface AlignmentSelectionModelpublic void clearSelection(SequenceAlignmentRectangle rectangle)
public SequenceAlignmentRectangle getRectangleAtPoint(SequenceAlignmentPoint point)
AlignmentSelectionModel
getRectangleAtPoint in interface AlignmentSelectionModelpoint - the point in question
public SequenceAlignmentRectangle[] getRectanglesAtPoint(SequenceAlignmentPoint point)
AlignmentSelectionModel
getRectanglesAtPoint in interface AlignmentSelectionModelpoint - the point in question
public void extendSelection(SequenceAlignmentPoint point)
AlignmentSelectionModel
extendSelection in interface AlignmentSelectionModelpoint - the start of the selectionpublic void stopSelection(SequenceAlignmentPoint point)
AlignmentSelectionModel
stopSelection in interface AlignmentSelectionModelpoint - the point to complete the selectionpublic void addAlignmentSelectionListener(AlignmentSelectionListener listener)
addAlignmentSelectionListener in interface AlignmentSelectionModelpublic void removeAlignmentSelectionListener(AlignmentSelectionListener listener)
removeAlignmentSelectionListener in interface AlignmentSelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||