net.sourceforge.nite.gui.transcriptionviewer
Class AbstractDisplayStrategy
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDisplayStrategy
public AbstractDisplayStrategy()
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