|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.gui.transcriptionviewer.DefaultTransToAnnoMap
public class DefaultTransToAnnoMap
The default implementation of TransToAnnoMap depends on a straightforward parent-child relation between annotation elements and transcription text. For most applications this is sufficient.
A DefaultTransAnnoMap must be initialized with a NTranscriptionView. The selectableAnnotationTypes of that NTranscriptionView determines which parents of a transcription element are actually returned by a call to getAnnotationElementsForTransElement.
Constructor Summary | |
---|---|
DefaultTransToAnnoMap(NTranscriptionView ntv)
|
Method Summary | |
---|---|
java.util.Set |
getAnnotationElementsForTransElement(NOMElement nme)
Returns all annotation elements that are a ancestor of the given transcription NOMElement. |
java.util.Set |
getTransElementsForAnnotationElement(NOMElement nme)
Returns all transcription elements that are a descendant of the given NOMElement. |
void |
init(NTranscriptionView ntv)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTransToAnnoMap(NTranscriptionView ntv)
Method Detail |
---|
public java.util.Set getTransElementsForAnnotationElement(NOMElement nme)
NB: Only those elements are returned that are actually displayed in the NTranscriptionView (useful e.g. if you display only speech for one participant...)
getTransElementsForAnnotationElement
in interface TransToAnnoMap
public java.util.Set getAnnotationElementsForTransElement(NOMElement nme)
getAnnotationElementsForTransElement
in interface TransToAnnoMap
public void init(NTranscriptionView ntv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |