net.sourceforge.nite.tools.comparison.nonspanning
Class MergedViewDisplayStrategy

java.lang.Object
  extended by net.sourceforge.nite.gui.transcriptionviewer.AbstractDisplayStrategy
      extended by net.sourceforge.nite.tools.comparison.nonspanning.MergedViewDisplayStrategy
All Implemented Interfaces:
DisplayStrategy

public class MergedViewDisplayStrategy
extends AbstractDisplayStrategy

EXTREMELY SPECIFIC


Constructor Summary
MergedViewDisplayStrategy(NTranscriptionView ntv, java.lang.String neTypeRole, java.lang.String abbrevAttrib, java.lang.String attributeName, NLayer annotatorlayer, java.lang.String annotatorattr, java.lang.String autoannotatorname, java.lang.String manualannotatorname)
          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.
 javax.swing.text.Style getann1style()
          END-OF-CONSTRUCTORS
 javax.swing.text.Style getann2style()
           
 javax.swing.text.Style getAnnotatorStyle(NOMElement element)
          Return template style for given annotator for an annotation element that points to ontology, or null if no annotator or annotator not known
 boolean getdisplayautoannotator()
           
 boolean getdisplaymanualannotator()
           
 javax.swing.text.Style getdualstyle()
           
 void hideautoannotator()
           
 void hidemanualannotator()
           
 void setannotatordisplay(int anndisplay)
           
 void setlogging(boolean flag)
          Do we want to notify user of display failure? Set this before displaying any text.
 void showautoannotator()
           
 void showmanualannotator()
           
 void styletext(boolean flag)
          Do we want to style the text pointed to by the annotation element? Set this before displaying any text.
 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

MergedViewDisplayStrategy

public MergedViewDisplayStrategy(NTranscriptionView ntv,
                                 java.lang.String neTypeRole,
                                 java.lang.String abbrevAttrib,
                                 java.lang.String attributeName,
                                 NLayer annotatorlayer,
                                 java.lang.String annotatorattr,
                                 java.lang.String autoannotatorname,
                                 java.lang.String manualannotatorname)
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

getann1style

public javax.swing.text.Style getann1style()
END-OF-CONSTRUCTORS


getann2style

public javax.swing.text.Style getann2style()

getdualstyle

public javax.swing.text.Style getdualstyle()

showautoannotator

public void showautoannotator()

hideautoannotator

public void hideautoannotator()

showmanualannotator

public void showmanualannotator()

hidemanualannotator

public void hidemanualannotator()

getdisplayautoannotator

public boolean getdisplayautoannotator()

getdisplaymanualannotator

public boolean getdisplaymanualannotator()

setannotatordisplay

public void setannotatordisplay(int anndisplay)

styletext

public void styletext(boolean flag)
Do we want to style the text pointed to by the annotation element? Set this before displaying any text.


setlogging

public void setlogging(boolean flag)
Do we want to notify user of display failure? Set this before displaying any text.


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.


getAnnotatorStyle

public javax.swing.text.Style getAnnotatorStyle(NOMElement element)
Return template style for given annotator for an annotation element that points to ontology, or null if no annotator or annotator not known