|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.annotation.wordfreak.scheme.AnnotationScheme
org.annotation.wordfreak.scheme.DerivativeAnnotationScheme
org.annotation.wordfreak.scheme.EntityAnnotationScheme
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MERGE
public static final java.lang.String SPLIT
public static final java.lang.String PURGE
public static final java.lang.String ENTITY_ID
| Constructor Detail |
public EntityAnnotationScheme(java.lang.String type)
| Method Detail |
public static java.lang.String[] getNames()
AnnotationSchemeStrings that can be passed to
the contsructor to specify which scheme behavior to use.
public void annotatedFile(AnnotationFile f)
AnnotationSchemef that this scheme can
modify.
annotatedFile in interface AnnotatedFileListenerannotatedFile in class DerivativeAnnotationSchemeprotected void getAnnotationsFromFile(AnnotationFile f)
AnnotationSchemeList annotations and List allAnnotaitons
getAnnotationsFromFile in class AnnotationSchemepublic void trackAnnotation(Annotation a)
trackAnnotation in class AnnotationSchemepublic boolean handlesAnnotation(Annotation a)
handlesAnnotation in class AnnotationSchemepublic boolean handlesBaseAnnotation(Annotation a)
handlesBaseAnnotation in class DerivativeAnnotationSchemepublic void createChooser()
AnnotationScheme
createChooser in class DerivativeAnnotationSchemeprotected void process(Annotation a)
process in class AnnotationSchemepublic void removeAnnotation(Annotation a)
removeAnnotation in class DerivativeAnnotationScheme
public void set(java.lang.String choice,
int modifiers,
boolean jump)
ChooserListener
set in interface ChooserListenerset in class AnnotationSchemeprotected void updateOutcomes(Annotation a)
AnnotationScheme
updateOutcomes in class AnnotationSchemeprotected void initOutcomes()
AnnotationScheme
initOutcomes in class AnnotationSchemepublic void addAnnotationSchemeListener(AnnotationSchemeListener al)
AnnotationScheme
addAnnotationSchemeListener in class AnnotationSchemeal - The object that will recieve the callbacks.public java.lang.Object getAdjudicationData(Annotation a)
getAdjudicationData in class AnnotationScheme
public boolean adjudicationMatch(Annotation a,
java.lang.Object ao,
Annotation b,
java.lang.Object bo)
adjudicationMatch in class AnnotationScheme
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||