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

java.lang.Object
  extended by net.sourceforge.nite.tools.comparison.nonspanning.NonSpanningComparisonDisplay

public class NonSpanningComparisonDisplay
extends java.lang.Object

Displays Non-Spanning annotations by 2 separate annotators.

A Non-Spanning annotation is one of a set of annotations within a coding layer that points to dialogue where the annotations do not cover the whole dialogue.

See main(java.lang.String[]) method for command-line arguments.

Important attributes from nxtConfig:

neelementname
name of element to compare
neontology
used to display tree gui
neroot
where to start drawing the tree gui
netyperole
pointer type into ontology (used to find annotator text)
abbrevattribute
attribute of netyperole pointer used for annotator text
nenameattribute
text to diplay if no valid pointer
transcriptionlayername
where the dialogue is
transcriptiondelegateclassname
transcriptionattribute
segmentationelementname
one line of dialogue
nsannotatorlayer
layer containing elements to compare
nscommonlayer
common layer name

Remaining tasks:

Based heavily on JastDisplay by Craig Nicol, which is based on MonitorDisplay by Jonathan Kilgour, Jean Carletta March 2003 and also on NECoder and AbstractCallableTool

Author:
Craig Nicol September 2006
See Also:
main(java.lang.String[]), NonSpanningCoderConfig, MergedViewDisplayStrategy, net.sourceforge.nite.tools.necoder, NECoder

Nested Class Summary
 class NonSpanningComparisonDisplay.ExitAction
          A very simple "exit" action
 class NonSpanningComparisonDisplay.NextAnnAction
          A "next annotation" action
 class NonSpanningComparisonDisplay.PrevAnnAction
          A "previous annotation" action
 class NonSpanningComparisonDisplay.SearchAction
          A "search" action - pops up a search GUI
 class NonSpanningComparisonDisplay.SearchResultPositionComparator
           
 class NonSpanningComparisonDisplay.ViewAction
           
 
Constructor Summary
NonSpanningComparisonDisplay(java.lang.String c, java.lang.String o, java.lang.String cf, java.lang.String gs, java.lang.String cs, java.lang.String an, java.lang.String mn, int s)
           
 
Method Summary
 void initTranscriptionViewSettings()
          Initializes the settings of the transcriptionView.
static void main(java.lang.String[] args)
          Called to start the application.
 void refreshTranscriptionView()
          Refresh the transcriptionView.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonSpanningComparisonDisplay

public NonSpanningComparisonDisplay(java.lang.String c,
                                    java.lang.String o,
                                    java.lang.String cf,
                                    java.lang.String gs,
                                    java.lang.String cs,
                                    java.lang.String an,
                                    java.lang.String mn,
                                    int s)
Method Detail

initTranscriptionViewSettings

public void initTranscriptionViewSettings()
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()
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: