|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.apps.cinema.motif.NamedAlignmentSelectionModel
NamedAlignmentSelectionModel.java Stores multiple selections each one with a name. Created: Wed Dec 27 15:20:30 2000
Constructor Summary | |
NamedAlignmentSelectionModel()
|
Method Summary | |
void |
addAlignmentSelectionListener(AlignmentSelectionListener listener)
|
void |
clearAllSelections()
|
void |
clearSelection()
Clear all the selections in this model |
void |
clearSelection(String name)
|
void |
extendSelection(SequenceAlignmentPoint point)
Start a selection at the given point |
SequenceAlignmentRectangle |
getCurrentSelection()
Returns the current selection or null if there is no selection. |
String |
getCurrentSelectionName()
|
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. |
SequenceAlignmentRectangle |
getSelectionForName(String name)
|
Iterator |
getSelectionNameIterator()
|
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 |
resizeSelection(String selection,
Direction dir,
int size)
|
void |
setNameForSelection(String oldName,
String newName)
|
void |
sortMotifs()
|
void |
stopSelection(SequenceAlignmentPoint point)
Complete the selection at the given point |
void |
valueChanged(AlignmentSelectionEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamedAlignmentSelectionModel()
Method Detail |
public void sortMotifs()
public Iterator getSelectionNameIterator()
public String getCurrentSelectionName()
public SequenceAlignmentRectangle getSelectionForName(String name)
public void setNameForSelection(String oldName, String newName)
public void clearAllSelections()
public void clearSelection(String name)
public void resizeSelection(String selection, Direction dir, int size)
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 IndexOutOfBoundsException
AlignmentSelectionModel
getSelectionAt
in interface AlignmentSelectionModel
index
- the index
IndexOutOfBoundsException
public boolean isPointSelected(SequenceAlignmentPoint point)
AlignmentSelectionModel
isPointSelected
in interface AlignmentSelectionModel
point
- the point
public void clearSelection()
AlignmentSelectionModel
clearSelection
in interface AlignmentSelectionModel
public SequenceAlignmentRectangle[] getRectanglesAtPoint(SequenceAlignmentPoint point)
AlignmentSelectionModel
getRectanglesAtPoint
in interface AlignmentSelectionModel
point
- the point in question
public SequenceAlignmentRectangle getRectangleAtPoint(SequenceAlignmentPoint point)
AlignmentSelectionModel
getRectangleAtPoint
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
public void valueChanged(AlignmentSelectionEvent event)
valueChanged
in interface AlignmentSelectionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |