public interface AlignmentService
AlignmentService
provides access to the currently loaded
alignment.Modifier and Type | Method and Description |
---|---|
boolean |
addBaseAlignment(BaseAlignmentLoader loader)
Adds a base alignment.
|
void |
addCell(MutableCell cell)
Adds the given cell to the current alignment.
|
void |
addListener(AlignmentServiceListener listener)
Adds a listener to the service
|
void |
addOrUpdateAlignment(MutableAlignment alignment)
Adds the cells contained in the given alignment to the current alignment.
If cells with the same entities and transformations already exist they will be replaced. |
void |
clean()
Invoke this operation if you want to clear out all alignments stored.
|
Alignment |
getAlignment()
Get the current alignment
|
void |
removeCells(Cell... cells)
Removes the given cells
|
void |
removeListener(AlignmentServiceListener listener)
Removes a listener to the service
|
void |
replaceCell(Cell oldCell,
MutableCell newCell)
Replace a cell with a new cell.
|
void |
replaceCells(Map<? extends Cell,MutableCell> cells)
Replace cells with a new cells.
|
void |
setCellProperty(String cellId,
String propertyName,
Object property)
Sets a property for the cell.
|
Alignment getAlignment()
Alignment
as currently represented in the
Alignment Model.void addOrUpdateAlignment(MutableAlignment alignment)
alignment
- the alignment to addvoid addCell(MutableCell cell)
cell
- the cell to addvoid replaceCell(Cell oldCell, MutableCell newCell)
oldCell
- the old cell that should be removed from the alignmentnewCell
- the new cell that should be added to the alignmentvoid replaceCells(Map<? extends Cell,MutableCell> cells)
cells
- a mapping from old cells that should be removed from the
alignment to new cells that should be added to the alignmentvoid removeCells(Cell... cells)
cells
- the cells to removevoid setCellProperty(String cellId, String propertyName, Object property)
cellId
- the cell id to set the property from.propertyName
- the name of the property to set.property
- the value of the property.void clean()
void addListener(AlignmentServiceListener listener)
listener
- the listener to addvoid removeListener(AlignmentServiceListener listener)
listener
- the listener to removeboolean addBaseAlignment(BaseAlignmentLoader loader)
loader
- the loader of the base alignmentBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a