public abstract class AbstractAlignmentService extends Object implements AlignmentService
AlignmentService
s that support
AlignmentServiceListener
sConstructor and Description |
---|
AbstractAlignmentService() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(AlignmentServiceListener listener)
Adds a listener to the service
|
protected void |
notifyAlignmentChanged()
Call when the alignment had some unspecified update.
|
protected void |
notifyAlignmentCleared()
Call when the alignment has been cleared
|
protected void |
notifyCellReplaced(Cell oldCell,
Cell newCell)
Call when an existing cell has been replaced by another.
|
protected void |
notifyCellsAdded(Iterable<Cell> cells)
Call when cells have been added
|
protected void |
notifyCellsPropertyChanged(Iterable<Cell> cells,
String propertyName)
Call when cells are modified.
|
protected void |
notifyCellsRemoved(Iterable<Cell> cells)
Call when existing cells have been removed
|
protected void |
notifyCellsReplaced(Map<? extends Cell,? extends Cell> cells)
Call when several existing cell has been replaced by others.
This method will take care of the map so that listeners cannot change it. |
void |
removeListener(AlignmentServiceListener listener)
Removes a listener to the service
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBaseAlignment, addCell, addOrUpdateAlignment, clean, getAlignment, removeCells, replaceCell, replaceCells, setCellProperty
public void addListener(AlignmentServiceListener listener)
addListener
in interface AlignmentService
listener
- the listener to addpublic void removeListener(AlignmentServiceListener listener)
removeListener
in interface AlignmentService
listener
- the listener to removeprotected void notifyAlignmentCleared()
protected void notifyCellsAdded(Iterable<Cell> cells)
cells
- the cells that have been addedprotected void notifyCellReplaced(Cell oldCell, Cell newCell)
oldCell
- the old cell that has been replacednewCell
- the new cell that has replaced the otherprotected void notifyCellsReplaced(Map<? extends Cell,? extends Cell> cells)
cells
- a mapping from replaced cell to new cellprotected void notifyCellsRemoved(Iterable<Cell> cells)
cells
- the cells that have been removedprotected void notifyCellsPropertyChanged(Iterable<Cell> cells, String propertyName)
cells
- the cells that have been modified.propertyName
- the name of the property that changed.protected void notifyAlignmentChanged()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a