org.annotation.wordfreak.scheme
Class TextCorrectionAnnotationScheme

java.lang.Object
  extended byorg.annotation.wordfreak.scheme.AnnotationScheme
      extended byorg.annotation.wordfreak.scheme.TextCorrectionAnnotationScheme
All Implemented Interfaces:
AnnotatedFileListener, ChooserListener, java.util.EventListener, Plugin, javax.swing.event.TreeModelListener, UndoListener, ViewerListener, WordFreakKeyboardFocusManager.HotKeyListener

public class TextCorrectionAnnotationScheme
extends AnnotationScheme


Nested Class Summary
 
Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
AnnotationScheme.POSFeature
 
Field Summary
static java.lang.String CORRECTED
           
static java.lang.String EDIT_TEXT
           
static java.lang.String EDITED
           
static java.lang.String INSERT_AFTER
           
static java.lang.String INSERT_BEFORE
           
static java.lang.String INSERTED
           
 
Fields inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
_ADD, _MOVE, _RELOAD, _REMOVE, _UPDATE, ANNOTATE, annotationFilter, annotator, annotatorName, canCreateAnnotations, chooser, chooserWidth, COADJUST, COADJUSTLEFT, COADJUSTRIGHT, codes, coloredWords, colors, colorTable, COMMENT, config, configLoaded, confineToBase, currentFile, DEFAULT_ACTION, defaultType, END, files, findIndex, FLATLEFT, FLATNEXT, FLATPREV, FLATRIGHT, groups, GROWLEFT, GROWRIGHT, guiListener, HOME, icons, index, INSERT, JUMP, L2R, LEFT, listeners, navigator, NEXT, NEXTCHUNK, NORM, one2one, one2oneFeature, one2oneValue, orientation, OUTCOME_CODES, OUTCOME_COLORS, OUTCOME_NAMES, outcomes, PREV, PREVCHUNK, R2L, REMOVE, RIGHT, selectedAnnotations, selEnd, selStart, SHRINKLEFT, SHRINKRIGHT, sortCriteria, sorted, sortedIndex, SPLIT, splita, splitb, type, typeMap, typeName, types, update, UPDATE, view, views
 
Constructor Summary
TextCorrectionAnnotationScheme(java.lang.String type)
           
 
Method Summary
protected  void createChooser()
          Instantiates a new chooser if one does not already exist and registers the chooser for scheme events and the scheme for chooser events.
static java.lang.String[] getNames()
          Returns the list of Strings that can be passed to the contsructor to specify which scheme behavior to use.
 boolean handlesAnnotation(Annotation a)
           
protected  void initOutcomes()
          Initalizes the set of outcomes that this scheme can assign an annotation.
 void set(java.lang.String choice, int modifiers, boolean jump, Annotation data)
          Specifies that the specified choice has been selected with the specified modifier and the specified selected Annotation and that the next annotation should be shown.
 
Methods inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
addAnnotationSchemeListener, adjudicationMatch, adjudicationMatch, annotatedFile, annotationFromMouse, annotationFromMouse, buildSwatches, closeAnnotatedFile, colorize, createView, dispose, down, end, filter, findExpression, findExpressionAgain, flatNext, flatPrev, getAdjudicationData, getAnnotation, getAnnotation, getAnnotationFilter, getAnnotationsFromFile, getAnnotationsFromOffsets, getAnnotationSize, getChooser, getColorScheme, getConfineToBase, getCurrentAnnotation, getDefaultType, getPropertyName, getSelectionMode, getSortedIndex, getValuesForFeature, handlesBaseAnnotation, handlesRelation, hilightChunk, home, hotKeyPressed, indexOfAnnotation, isOutcome, jumpToMark, linkAnnotation, moveAnnotation, next, nextFile, nextOutcome, notifyListeners, notifyListeners, offsetToIndex, prev, prevFile, prevOutcome, process, redoPerformed, reload, reloadFiles, removeAllAnnotationSchemeListeners, removeAnnotation, removeAnnotation, removeAnnotationSchemeListener, selectCurrentAnnotation, set, set, set, setAnnotatedFile, setAnnotation, setAnnotationFilter, setAnnotationView, setAnnotator, setAnnotatorName, setChooser, setChunkNavigation, setConfig, setConfineToBase, setFeature, setGuiListener, setJumpAfterAnnotation, setMark, setNavigator, setOneToOne, setOneToOne, setOrientation, setSelection, setSelection, setSelectionEnd, setSelectionMode, setSelectionStart, setSelEnd, setSortedIndex, setSortScheme, setTypeName, trackAnnotation, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, undoPerformed, up, updateOutcomes, viewCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDIT_TEXT

public static final java.lang.String EDIT_TEXT
See Also:
Constant Field Values

INSERT_BEFORE

public static final java.lang.String INSERT_BEFORE
See Also:
Constant Field Values

INSERT_AFTER

public static final java.lang.String INSERT_AFTER
See Also:
Constant Field Values

CORRECTED

public static final java.lang.String CORRECTED
See Also:
Constant Field Values

EDITED

public static final java.lang.String EDITED
See Also:
Constant Field Values

INSERTED

public static final java.lang.String INSERTED
See Also:
Constant Field Values
Constructor Detail

TextCorrectionAnnotationScheme

public TextCorrectionAnnotationScheme(java.lang.String type)
Method Detail

initOutcomes

protected void initOutcomes()
Description copied from class: AnnotationScheme
Initalizes the set of outcomes that this scheme can assign an annotation.

Specified by:
initOutcomes in class AnnotationScheme

getNames

public static java.lang.String[] getNames()
Description copied from class: AnnotationScheme
Returns the list of Strings that can be passed to the contsructor to specify which scheme behavior to use.


handlesAnnotation

public boolean handlesAnnotation(Annotation a)
Overrides:
handlesAnnotation in class AnnotationScheme

createChooser

protected void createChooser()
Instantiates a new chooser if one does not already exist and registers the chooser for scheme events and the scheme for chooser events.

Overrides:
createChooser in class AnnotationScheme

set

public void set(java.lang.String choice,
                int modifiers,
                boolean jump,
                Annotation data)
Description copied from interface: ChooserListener
Specifies that the specified choice has been selected with the specified modifier and the specified selected Annotation and that the next annotation should be shown.

Specified by:
set in interface ChooserListener
Overrides:
set in class AnnotationScheme


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.