Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.align.internal
Class AlignmentServiceImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.service.align.internal.AbstractAlignmentService
      extended by eu.esdihumboldt.hale.ui.service.align.internal.AlignmentServiceImpl
All Implemented Interfaces:
AlignmentService

public class AlignmentServiceImpl
extends AbstractAlignmentService

Default AlignmentService implementation

Author:
Thorsten Reitz, Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
AlignmentServiceImpl(ProjectService projectService)
          Default constructor
 
Method Summary
 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.
 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.
 
Methods inherited from class eu.esdihumboldt.hale.ui.service.align.internal.AbstractAlignmentService
addListener, notifyAlignmentCleared, notifyCellReplaced, notifyCellsAdded, notifyCellsRemoved, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignmentServiceImpl

public AlignmentServiceImpl(ProjectService projectService)
Default constructor

Parameters:
projectService - the project service
Method Detail

addCell

public void addCell(MutableCell cell)
Description copied from interface: AlignmentService
Adds the given cell to the current alignment.

Parameters:
cell - the cell to add
See Also:
AlignmentService.addCell(MutableCell)

replaceCell

public void replaceCell(Cell oldCell,
                        MutableCell newCell)
Description copied from interface: AlignmentService
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
See Also:
AlignmentService.replaceCell(Cell, MutableCell)

clean

public void clean()
Description copied from interface: AlignmentService
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.

See Also:
AlignmentService.clean()

addOrUpdateAlignment

public void addOrUpdateAlignment(MutableAlignment alignment)
Description copied from interface: AlignmentService
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
See Also:
AlignmentService.addOrUpdateAlignment(MutableAlignment)

getAlignment

public Alignment getAlignment()
Description copied from interface: AlignmentService
Get the current alignment

Returns:
the entire Alignment as currently represented in the Alignment Model.
See Also:
AlignmentService.getAlignment()

removeCells

public void removeCells(Cell... cells)
Description copied from interface: AlignmentService
Removes the given cells

Parameters:
cells - the cells to remove
See Also:
AlignmentService.removeCells(Cell[])

Humboldt Alignment Editor 2.5.0

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