|
|||||||||||
| 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.ConstituentAnnotationScheme
| Nested Class Summary |
| Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme |
AnnotationScheme.POSFeature |
| Field Summary | |
static java.lang.String |
ADDTRACE
|
static java.lang.String |
GAPREF
|
static java.lang.String |
LINKTRACE
|
static java.lang.String |
NPSBJ
|
static java.lang.String |
REMREF
|
static java.lang.String |
REMROLES
|
static java.lang.String |
ROLES
|
static java.lang.String |
TRACEREF
|
| 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, 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 | |
ConstituentAnnotationScheme(java.lang.String type)
|
|
ConstituentAnnotationScheme(java.lang.String type,
Chooser c)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
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)
|
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 ann)
|
boolean |
handlesBaseAnnotation(Annotation ann)
|
protected void |
initOutcomes()
Initalizes the set of outcomes that this scheme can assign an annotation. |
boolean |
isOutcome(java.lang.String choice)
|
boolean |
linkAnnotation(Annotation source,
Annotation target,
int modifiers)
Requests that the specified source annotation be linked to the specified target annotation given the modifiers. |
protected void |
process(Annotation a)
|
void |
removeAnnotationSchemeListener(AnnotationSchemeListener al)
Unregisters the specified listener from the annotation scheme callbacks. |
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 |
setSelection(AnnotationSelection anns,
boolean validate)
Requests that the specified annotation selection should be set as the current selection and adjusted if the specified validate condition is true. |
void |
trackAnnotation(Annotation ann)
|
void |
updateOutcomes(Annotation a)
Changes the possible outcomes or their order as appropiate. |
| Methods inherited from class org.annotation.wordfreak.scheme.DerivativeAnnotationScheme |
addAnnotation, addAnnotation, annotatedFile, annotationFromMouse, findExpression, findExpressionAgain, getInsertCommandFromSelection, getPreprocessing, makeVisible, moveAnnotation, next, offsetToIndex, prev, process, removeAnnotation, removeAnnotation, removeRedundantChildren, replaceChildrenWithParent, selectCurrentAnnotation, set, setAnnotation, setPreprocessing, 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 ROLES
public static final java.lang.String TRACEREF
public static final java.lang.String GAPREF
public static final java.lang.String ADDTRACE
public static final java.lang.String NPSBJ
public static final java.lang.String LINKTRACE
public static final java.lang.String REMREF
public static final java.lang.String REMROLES
| Constructor Detail |
public ConstituentAnnotationScheme(java.lang.String type)
public ConstituentAnnotationScheme(java.lang.String type,
Chooser c)
| Method Detail |
public static java.lang.String[] getNames()
AnnotationSchemeStrings that can be passed to
the contsructor to specify which scheme behavior to use.
protected void initOutcomes()
AnnotationScheme
initOutcomes in class AnnotationSchemeprotected void createChooser()
AnnotationScheme
createChooser in class DerivativeAnnotationSchemepublic void addAnnotationSchemeListener(AnnotationSchemeListener al)
AnnotationScheme
addAnnotationSchemeListener in class AnnotationSchemeal - The object that will recieve the callbacks.public void removeAnnotationSchemeListener(AnnotationSchemeListener al)
AnnotationScheme
removeAnnotationSchemeListener in class AnnotationSchemeal - The object which will no longer recieve annotation scheme callbacks.
public boolean linkAnnotation(Annotation source,
Annotation target,
int modifiers)
ViewerListenerConstituentAnnotaitonScheme.
linkAnnotation in interface ViewerListenerlinkAnnotation in class AnnotationSchemepublic void trackAnnotation(Annotation ann)
trackAnnotation in class AnnotationSchemepublic boolean handlesAnnotation(Annotation ann)
handlesAnnotation in class AnnotationSchemepublic boolean handlesBaseAnnotation(Annotation ann)
handlesBaseAnnotation in class DerivativeAnnotationScheme
public boolean adjudicationMatch(Annotation a,
java.lang.Object ao,
Annotation b,
java.lang.Object bo)
adjudicationMatch in class AnnotationScheme
public void setSelection(AnnotationSelection anns,
boolean validate)
ViewerListener
setSelection in interface ViewerListenersetSelection in class DerivativeAnnotationSchemeprotected void process(Annotation a)
process in class AnnotationSchemepublic boolean isOutcome(java.lang.String choice)
isOutcome in class AnnotationScheme
public void set(java.lang.String choice,
int modifiers,
boolean jump)
ChooserListener
set in interface ChooserListenerset in class AnnotationSchemepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void updateOutcomes(Annotation a)
AnnotationScheme
updateOutcomes in class AnnotationScheme
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||