net.sourceforge.nite.tools.necoder
Class NEDisplayStrategyMulti
java.lang.Object
net.sourceforge.nite.gui.transcriptionviewer.AbstractDisplayStrategy
net.sourceforge.nite.tools.necoder.NEDisplayStrategyMulti
- All Implemented Interfaces:
- DisplayStrategy
public class NEDisplayStrategyMulti
- extends AbstractDisplayStrategy
- Author:
- Craig Nicol, based on NEDisplayStrategy (edited by Jonathan Kilgour)
Display for the NE coder when we allow multiple assignments for the same span
Constructor Summary |
NEDisplayStrategyMulti(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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NEDisplayStrategyMulti
public NEDisplayStrategyMulti(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)
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.