net.sourceforge.nite.gui.transcriptionviewer
Class AbstractDisplayStrategy

java.lang.Object
  extended by net.sourceforge.nite.gui.transcriptionviewer.AbstractDisplayStrategy
All Implemented Interfaces:
DisplayStrategy
Direct Known Subclasses:
JastDisplayStrategy, MergedViewDisplayStrategy, NEDisplayStrategy, NEDisplayStrategyMulti, OntologyColourDisplayStrategy, StringInsertDisplayStrategy, TextStyleDisplayStrategy

public abstract class AbstractDisplayStrategy
extends java.lang.Object
implements DisplayStrategy

This class provides a basic implementation of the DisplayStrategy interface. Most implementations will subclass AbstractDisplayStrategy, since it provides one or two useful things.

See the documentation of the NTranscriptionView class for some utility methods to modify the style of text elements. Most important are InsertCopyOfStyle and RemoveStyleFromChain.

Author:
Dennis Reidsma, Natasa Jovanovic, Dennis Hofs

Constructor Summary
AbstractDisplayStrategy()
           
 
Method Summary
 void init(NTranscriptionView ntv)
          Initialization: store NTranscriptionView and create a template italic style.
 void setTransToAnnoMap(TransToAnnoMap newmap)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.nite.gui.transcriptionviewer.DisplayStrategy
display, undisplay
 

Constructor Detail

AbstractDisplayStrategy

public AbstractDisplayStrategy()
Method Detail

init

public void init(NTranscriptionView ntv)
Initialization: store NTranscriptionView and create a template italic style.

Specified by:
init in interface DisplayStrategy

setTransToAnnoMap

public void setTransToAnnoMap(TransToAnnoMap newmap)
Specified by:
setTransToAnnoMap in interface DisplayStrategy