public class AlignmentServiceImpl extends AbstractAlignmentService
AlignmentService
implementationConstructor and Description |
---|
AlignmentServiceImpl(ProjectService projectService)
Default constructor
|
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 |
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 |
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.
|
addListener, notifyAlignmentChanged, notifyAlignmentCleared, notifyCellReplaced, notifyCellsAdded, notifyCellsPropertyChanged, notifyCellsRemoved, notifyCellsReplaced, removeListener
public AlignmentServiceImpl(ProjectService projectService)
projectService
- the project servicepublic void addCell(MutableCell cell)
AlignmentService
cell
- the cell to addAlignmentService.addCell(MutableCell)
public void replaceCell(Cell oldCell, MutableCell newCell)
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
cells
- a mapping from old cells that should be removed from the
alignment to new cells that should be added to the alignmentAlignmentService.replaceCells(java.util.Map)
public void clean()
AlignmentService
AlignmentService.clean()
public void addOrUpdateAlignment(MutableAlignment alignment)
AlignmentService
alignment
- the alignment to addAlignmentService.addOrUpdateAlignment(MutableAlignment)
public Alignment getAlignment()
AlignmentService
Alignment
as currently represented in the
Alignment Model.AlignmentService.getAlignment()
public void removeCells(Cell... cells)
AlignmentService
cells
- the cells to removeAlignmentService.removeCells(Cell[])
public void setCellProperty(String cellId, String propertyName, Object property)
AlignmentService
cellId
- the cell id to set the property from.propertyName
- the name of the property to set.property
- the value of the property.AlignmentService.setCellProperty(java.lang.String,
java.lang.String, java.lang.Object)
public boolean addBaseAlignment(BaseAlignmentLoader loader)
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