public abstract class AlignmentServiceDecorator extends Object implements AlignmentService
Modifier and Type | Field and Description |
---|---|
protected AlignmentService |
alignmentService
The decorated alignment service
|
Constructor and Description |
---|
AlignmentServiceDecorator(AlignmentService alignmentService)
Create a decorator for the given alignment service
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCellProperty
protected final AlignmentService alignmentService
public AlignmentServiceDecorator(AlignmentService alignmentService)
alignmentService
- the alignment servicepublic Alignment getAlignment()
AlignmentService
getAlignment
in interface AlignmentService
Alignment
as currently represented in the
Alignment Model.AlignmentService.getAlignment()
public void addOrUpdateAlignment(MutableAlignment alignment)
AlignmentService
addOrUpdateAlignment
in interface AlignmentService
alignment
- the alignment to addAlignmentService.addOrUpdateAlignment(MutableAlignment)
public void addCell(MutableCell cell)
AlignmentService
addCell
in interface AlignmentService
cell
- the cell to addAlignmentService.addCell(MutableCell)
public void removeCells(Cell... cells)
AlignmentService
removeCells
in interface AlignmentService
cells
- the cells to removeAlignmentService.removeCells(Cell[])
public void clean()
AlignmentService
clean
in interface AlignmentService
AlignmentService.clean()
public void addListener(AlignmentServiceListener listener)
AlignmentService
addListener
in interface AlignmentService
listener
- the listener to addAlignmentService.addListener(AlignmentServiceListener)
public void removeListener(AlignmentServiceListener listener)
AlignmentService
removeListener
in interface AlignmentService
listener
- the listener to removeAlignmentService.removeListener(AlignmentServiceListener)
public void replaceCell(Cell oldCell, MutableCell newCell)
AlignmentService
replaceCell
in interface AlignmentService
oldCell
- the old cell that should be removed from the alignmentnewCell
- the new cell that should be added to the alignmentAlignmentService.replaceCell(Cell, MutableCell)
public void replaceCells(Map<? extends Cell,MutableCell> cells)
AlignmentService
replaceCells
in interface AlignmentService
cells
- a mapping from old cells that should be removed from the
alignment to new cells that should be added to the alignmentAlignmentService.replaceCells(Map)
public boolean addBaseAlignment(BaseAlignmentLoader loader)
AlignmentService
addBaseAlignment
in interface AlignmentService
loader
- the loader of the base alignmentAlignmentService.addBaseAlignment(eu.esdihumboldt.hale.ui.service.align.BaseAlignmentLoader)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a