Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.align
Interface AlignmentService

All Known Implementing Classes:
AbstractAlignmentService, AlignmentServiceDecorator, AlignmentServiceImpl, AlignmentServiceUndoSupport

public interface AlignmentService

The AlignmentService provides access to the currently loaded alignment.

Author:
Thorsten Reitz, Simon Templer

Method Summary
 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.
 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.
 

Method Detail

getAlignment

Alignment getAlignment()
Get the current alignment

Returns:
the entire Alignment as currently represented in the Alignment Model.

addOrUpdateAlignment

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.

Parameters:
alignment - the alignment to add

addCell

void addCell(MutableCell cell)
Adds the given cell to the current alignment.

Parameters:
cell - the cell to add

replaceCell

void replaceCell(Cell oldCell,
                 MutableCell newCell)
Replace a cell with a new cell.

Parameters:
oldCell - the old cell that should be removed from the alignment
newCell - the new cell that should be added to the alignment

removeCells

void removeCells(Cell... cells)
Removes the given cells

Parameters:
cells - the cells to remove

clean

void clean()
Invoke this operation if you want to clear out all alignments stored. This method is required when one wants to start working on a new alignment.


addListener

void addListener(AlignmentServiceListener listener)
Adds a listener to the service

Parameters:
listener - the listener to add

removeListener

void removeListener(AlignmentServiceListener listener)
Removes a listener to the service

Parameters:
listener - the listener to remove

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d