net.sourceforge.nite.tools.comparison.dualtranscription
Class DualTranscriptionResourceDisplay

java.lang.Object
  extended by net.sourceforge.nite.tools.comparison.dualtranscription.DualTranscriptionResourceDisplay

public class DualTranscriptionResourceDisplay
extends java.lang.Object

Displays Transcriptions by 2 separate annotators.

Author:
Craig Nicol October 2006
See Also:
main(java.lang.String[])

Nested Class Summary
 class DualTranscriptionResourceDisplay.ExitAction
          A very simple "exit" action
 class DualTranscriptionResourceDisplay.SearchAction
          A "search" action - pops up a search GUI
 
Constructor Summary
DualTranscriptionResourceDisplay(java.lang.String c, java.lang.String o, java.lang.String cf, java.lang.String gs, java.lang.String cs1, java.lang.String cs2, java.lang.String r1n, java.lang.String r2n)
           
 
Method Summary
 java.lang.String getAnnotatorName()
           
 void initTranscriptionViewSettings(NTranscriptionView ntv, NonSpanningCoderConfig config, java.lang.String aname)
          Initializes the settings of the transcriptionView.
static void main(java.lang.String[] args)
          Called to start the application.
 void refreshTranscriptionView(NTranscriptionView ntv, NECoderConfig config, java.lang.String rname)
          Refresh the transcriptionView.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DualTranscriptionResourceDisplay

public DualTranscriptionResourceDisplay(java.lang.String c,
                                        java.lang.String o,
                                        java.lang.String cf,
                                        java.lang.String gs,
                                        java.lang.String cs1,
                                        java.lang.String cs2,
                                        java.lang.String r1n,
                                        java.lang.String r2n)
Method Detail

getAnnotatorName

public java.lang.String getAnnotatorName()

initTranscriptionViewSettings

public void initTranscriptionViewSettings(NTranscriptionView ntv,
                                          NonSpanningCoderConfig config,
                                          java.lang.String aname)
Initializes the settings of the transcriptionView. This method does NOT fill the contents of the view. The contents are filled in refreshTranscriptionView. This methods will be overriden by the implementations.

WHAT SHOULD BE INITIALIZED? See also new config classes


refreshTranscriptionView

public void refreshTranscriptionView(NTranscriptionView ntv,
                                     NECoderConfig config,
                                     java.lang.String rname)
Refresh the transcriptionView. This method does NOT change the settings of the view, it merely clears the contents and redisplays the transcription segments and the annotation elements. The view settings are changed in initTranscriptionViewSettings. May be overriden, but default behaviour is OK for most. Default: display all segments of type config.getSegmentationElementName() and display all annotation element of all types in config.getDisplayedAnnotationNames().


main

public static void main(java.lang.String[] args)
Called to start the application. Required command line arguments are: