org.annotation.wordfreak.scheme
Class EntityAnnotationScheme

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

public class EntityAnnotationScheme
extends DerivativeAnnotationScheme


Nested Class Summary
 
Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
AnnotationScheme.POSFeature
 
Field Summary
static java.lang.String ENTITY_ID
           
static java.lang.String MERGE
           
static java.lang.String PURGE
           
static java.lang.String SPLIT
           
 
Fields inherited from class org.annotation.wordfreak.scheme.DerivativeAnnotationScheme
canCreateChains, deleteParagraphs, matcher, pattern, preprocess, recursive
 
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, splita, splitb, type, typeMap, typeName, types, update, UPDATE, view, views
 
Constructor Summary
EntityAnnotationScheme(java.lang.String type)
           
 
Method Summary
 void addAnnotationSchemeListener(AnnotationSchemeListener al)
          Registers the specified listener for annotation scheme callbacks.
 boolean adjudicationMatch(Annotation a, java.lang.Object ao, Annotation b, java.lang.Object bo)
           
 void annotatedFile(AnnotationFile f)
          Selects annotations from f that this scheme can modify.
 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.
 java.lang.Object getAdjudicationData(Annotation a)
           
protected  void getAnnotationsFromFile(AnnotationFile f)
          Creates data structures needed by the scheme to induce the set of all possible annotations.
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)
           
 boolean handlesBaseAnnotation(Annotation a)
           
protected  void initOutcomes()
          Initalizes the set of outcomes that this scheme can assign an annotation.
protected  void process(Annotation a)
           
 void removeAnnotation(Annotation a)
           
 void set(java.lang.String choice, int modifiers, boolean jump)
          Specifies that the specified choice has been selected with the specified modifier and that the next annotation should be shown.
 void trackAnnotation(Annotation a)
           
protected  void updateOutcomes(Annotation a)
          Changes the possible outcomes or their order as appropiate.
 
Methods inherited from class org.annotation.wordfreak.scheme.DerivativeAnnotationScheme
addAnnotation, addAnnotation, annotationFromMouse, findExpression, findExpressionAgain, getInsertCommandFromSelection, getPreprocessing, makeVisible, moveAnnotation, next, offsetToIndex, prev, process, removeAnnotation, removeRedundantChildren, replaceChildrenWithParent, selectCurrentAnnotation, set, setAnnotation, setPreprocessing, setSelection, setSelection, unstyleAnnotation
 
Methods inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
adjudicationMatch, annotationFromMouse, annotationFromMouse, buildSwatches, closeAnnotatedFile, colorize, createView, dispose, down, end, filter, flatNext, flatPrev, getAnnotation, getAnnotation, getAnnotationFilter, getAnnotationsFromOffsets, getAnnotationSize, getChooser, getColorScheme, getConfineToBase, getCurrentAnnotation, getDefaultType, getPropertyName, getSelectionMode, getSortedIndex, getValuesForFeature, handlesRelation, hilightChunk, home, hotKeyPressed, indexOfAnnotation, isOutcome, jumpToMark, linkAnnotation, nextFile, nextOutcome, notifyListeners, notifyListeners, prevFile, prevOutcome, redoPerformed, reload, reloadFiles, removeAllAnnotationSchemeListeners, removeAnnotationSchemeListener, set, set, setAnnotatedFile, setAnnotationFilter, setAnnotationView, setAnnotator, setAnnotatorName, setChooser, setChunkNavigation, setConfig, setConfineToBase, setFeature, setGuiListener, setJumpAfterAnnotation, setMark, setNavigator, setOneToOne, setOneToOne, setOrientation, setSelectionEnd, setSelectionMode, setSelectionStart, setSelEnd, setSortedIndex, setSortScheme, setTypeName, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, undoPerformed, up, viewCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MERGE

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

SPLIT

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

PURGE

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

ENTITY_ID

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

EntityAnnotationScheme

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

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.


annotatedFile

public void annotatedFile(AnnotationFile f)
Description copied from class: AnnotationScheme
Selects annotations from f that this scheme can modify.

Specified by:
annotatedFile in interface AnnotatedFileListener
Overrides:
annotatedFile in class DerivativeAnnotationScheme

getAnnotationsFromFile

protected void getAnnotationsFromFile(AnnotationFile f)
Description copied from class: AnnotationScheme
Creates data structures needed by the scheme to induce the set of all possible annotations. This minimaly includes populating List annotations and List allAnnotaitons

Overrides:
getAnnotationsFromFile in class AnnotationScheme

trackAnnotation

public void trackAnnotation(Annotation a)
Overrides:
trackAnnotation in class AnnotationScheme

handlesAnnotation

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

handlesBaseAnnotation

public boolean handlesBaseAnnotation(Annotation a)
Overrides:
handlesBaseAnnotation in class DerivativeAnnotationScheme

createChooser

public void createChooser()
Description copied from class: AnnotationScheme
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 DerivativeAnnotationScheme

process

protected void process(Annotation a)
Overrides:
process in class AnnotationScheme

removeAnnotation

public void removeAnnotation(Annotation a)
Overrides:
removeAnnotation in class DerivativeAnnotationScheme

set

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

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

updateOutcomes

protected void updateOutcomes(Annotation a)
Description copied from class: AnnotationScheme
Changes the possible outcomes or their order as appropiate.

Overrides:
updateOutcomes in class AnnotationScheme

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

addAnnotationSchemeListener

public void addAnnotationSchemeListener(AnnotationSchemeListener al)
Description copied from class: AnnotationScheme
Registers the specified listener for annotation scheme callbacks.

Overrides:
addAnnotationSchemeListener in class AnnotationScheme
Parameters:
al - The object that will recieve the callbacks.

getAdjudicationData

public java.lang.Object getAdjudicationData(Annotation a)
Overrides:
getAdjudicationData in class AnnotationScheme

adjudicationMatch

public boolean adjudicationMatch(Annotation a,
                                 java.lang.Object ao,
                                 Annotation b,
                                 java.lang.Object bo)
Overrides:
adjudicationMatch in class AnnotationScheme


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