Humboldt Alignment Editor 2.5.0

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

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

public abstract class AbstractAlignmentService
extends Object
implements AlignmentService

Notification handling for AlignmentServices that support AlignmentServiceListeners

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

Constructor Summary
AbstractAlignmentService()
           
 
Method Summary
 void addListener(AlignmentServiceListener listener)
          Adds a listener to the service
protected  void notifyAlignmentCleared()
          Call when the alignment has been cleared
protected  void notifyCellReplaced(Cell oldCell, Cell newCell)
          Call when an existing cell has been replaced by another.
protected  void notifyCellsAdded(Iterable<Cell> cells)
          Call when cells have been added
protected  void notifyCellsRemoved(Iterable<Cell> cells)
          Call when existing cells have been removed
 void removeListener(AlignmentServiceListener listener)
          Removes a listener to the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.ui.service.align.AlignmentService
addCell, addOrUpdateAlignment, clean, getAlignment, removeCells, replaceCell
 

Constructor Detail

AbstractAlignmentService

public AbstractAlignmentService()
Method Detail

addListener

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

Specified by:
addListener in interface AlignmentService
Parameters:
listener - the listener to add

removeListener

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

Specified by:
removeListener in interface AlignmentService
Parameters:
listener - the listener to remove

notifyAlignmentCleared

protected void notifyAlignmentCleared()
Call when the alignment has been cleared


notifyCellsAdded

protected void notifyCellsAdded(Iterable<Cell> cells)
Call when cells have been added

Parameters:
cells - the cells that have been added

notifyCellReplaced

protected void notifyCellReplaced(Cell oldCell,
                                  Cell newCell)
Call when an existing cell has been replaced by another.

Parameters:
oldCell - the old cell that has been replaced
newCell - the new cell that has replaced the other

notifyCellsRemoved

protected void notifyCellsRemoved(Iterable<Cell> cells)
Call when existing cells have been removed

Parameters:
cells - the cells that have been removed

Humboldt Alignment Editor 2.5.0

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