org.annotation.wordfreak.scheme
Class DocumentAnnotationScheme

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

public class DocumentAnnotationScheme
extends AnnotationScheme

Author:
Tom Morton

Nested Class Summary
 
Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
AnnotationScheme.POSFeature
 
Field Summary
static java.lang.String DOCUMENT_TYPE
           
 
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
DocumentAnnotationScheme(java.lang.String type)
           
 
Method Summary
static Annotation getDocumentAnnotation(Annotation a)
          Returns the document which contains the annotation a.
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.
 
Methods inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
addAnnotationSchemeListener, adjudicationMatch, adjudicationMatch, annotatedFile, annotationFromMouse, annotationFromMouse, buildSwatches, closeAnnotatedFile, colorize, createChooser, 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, 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

DOCUMENT_TYPE

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

DocumentAnnotationScheme

public DocumentAnnotationScheme(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

getDocumentAnnotation

public static Annotation getDocumentAnnotation(Annotation a)
Returns the document which contains the annotation a.

Parameters:
a - The annotation whose document is desired.
Returns:
The document which contains a or the file root if no such document exists.


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