net.sourceforge.nite.tools.necoder
Class NEDisplayStrategy

java.lang.Object
  extended by net.sourceforge.nite.gui.transcriptionviewer.AbstractDisplayStrategy
      extended by net.sourceforge.nite.tools.necoder.NEDisplayStrategy
All Implemented Interfaces:
DisplayStrategy

public class NEDisplayStrategy
extends AbstractDisplayStrategy

EXTREMELY SPECIFIC


Constructor Summary
NEDisplayStrategy(NTranscriptionView ntv, java.lang.String neTypeRole, java.lang.String abbrevAttrib, java.lang.String attributeName)
          Initialize neTypeRole is the role of the pointer to the NE ontology; abbrevAttrib is the name of the attrib in the ne ontology that isused in the 'brackets'; attributeName is non-null if we should display an attribute of the named entity rather than a pointer to a type ontology (jonathan 25/3/6)
 
Method Summary
 boolean display(NOMElement element)
          Display annotation element by changing the text style of all text for all relevant transcription elements.
 void undisplay(NOMElement element)
          Undisplay annotation elements by removing the relevant styles from the style chain for the appropriate transcription elements.
 
Methods inherited from class net.sourceforge.nite.gui.transcriptionviewer.AbstractDisplayStrategy
init, setTransToAnnoMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NEDisplayStrategy

public NEDisplayStrategy(NTranscriptionView ntv,
                         java.lang.String neTypeRole,
                         java.lang.String abbrevAttrib,
                         java.lang.String attributeName)
Initialize neTypeRole is the role of the pointer to the NE ontology; abbrevAttrib is the name of the attrib in the ne ontology that isused in the 'brackets'; attributeName is non-null if we should display an attribute of the named entity rather than a pointer to a type ontology (jonathan 25/3/6)

Method Detail

display

public boolean display(NOMElement element)
Display annotation element by changing the text style of all text for all relevant transcription elements.

Returns:
true if displayed successfully, i.e. if the text to which given element relates was actually visible in the NTranscriptionView.

undisplay

public void undisplay(NOMElement element)
Undisplay annotation elements by removing the relevant styles from the style chain for the appropriate transcription elements.