org.annotation.wordfreak.scheme
Class RelationAnnotationScheme

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

public class RelationAnnotationScheme
extends NamedEntityAnnotationScheme


Nested Class Summary
 
Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
AnnotationScheme.POSFeature
 
Field Summary
protected  java.lang.String annotationOther
           
static java.lang.String ARG
           
static java.lang.String CHINESE
           
protected  boolean createUnseenRelations
           
static java.lang.String CURRENT
           
protected  boolean dynamicFrames
           
static java.lang.String ENGLISH
           
static java.lang.String FUNCTION
           
static java.lang.String KOREAN
           
static java.lang.String PROP
           
static java.lang.String REL_GROUP_ID
           
static java.lang.String RELATION
           
static java.lang.String RELATION_FILES
           
static java.lang.String RELATIONS
           
static java.lang.String ROLESET
           
static java.lang.String SELECTED
           
protected  boolean showGroupToggle
           
protected  boolean showOutcomes
           
protected  java.util.List styled
           
protected  AnnotationTree tree
           
 java.lang.String[] var_roles
           
 java.lang.String[] var_types
           
 
Fields inherited from class org.annotation.wordfreak.scheme.NamedEntityAnnotationScheme
base, binary, COLOR, dividers, featureOrientation, features, featureValues, GROUP, handles, HEAD, iconFeature, iconMap, NAME, negroups, NONE, outcomeOrientation, ROLE, showFeatures, showHead, tenSpace
 
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, SPLIT, splita, splitb, type, typeMap, typeName, update, UPDATE, view, views
 
Constructor Summary
RelationAnnotationScheme(java.lang.String type)
           
RelationAnnotationScheme(java.lang.String type, Chooser c)
           
 
Method Summary
 void addAnnotationSchemeListener(AnnotationSchemeListener al)
          Registers the specified listener for annotation scheme callbacks.
 void closeAnnotatedFile(AnnotationFile f)
          Removes annotations in f from the set of possible annotations.
 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.
 void getAnnotationsFromFile(AnnotationFile af)
          Creates data structures needed by the scheme to induce the set of all possible annotations.
 java.lang.String getTypeForRole(java.lang.String role, java.lang.String relation_type)
           
 void initOutcomes()
          Initalizes the set of outcomes that this scheme can assign an annotation.
protected  void loadXML()
           
 void process()
           
 void process(Annotation ann)
           
 void reload()
          Reloads each of the open files.
 void removeAnnotation(Annotation a)
           
 void set(java.lang.String choice, int modifiers, boolean jump, Annotation selectedAnnotation)
          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.
 void setAnnotationView(AnnotationView v)
           
 void setFeaturesToDisplay(AnnotationSchemeListener al)
           
 void trackAnnotation(Annotation a)
           
 void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
           
 void unbindAnnotation(Annotation a)
           
 
Methods inherited from class org.annotation.wordfreak.scheme.NamedEntityAnnotationScheme
createNamedEntityComponent, handlesAnnotation, handlesBaseAnnotation, set, setConfig
 
Methods inherited from class org.annotation.wordfreak.scheme.DerivativeAnnotationScheme
addAnnotation, addAnnotation, annotatedFile, annotationFromMouse, findExpression, findExpressionAgain, getInsertCommandFromSelection, getPreprocessing, makeVisible, moveAnnotation, next, offsetToIndex, prev, removeAnnotation, removeRedundantChildren, replaceChildrenWithParent, selectCurrentAnnotation, setAnnotation, setPreprocessing, setSelection, setSelection, unstyleAnnotation
 
Methods inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
adjudicationMatch, adjudicationMatch, annotationFromMouse, annotationFromMouse, buildSwatches, colorize, createView, dispose, down, end, filter, flatNext, flatPrev, getAdjudicationData, getAnnotation, getAnnotation, getAnnotationFilter, getAnnotationsFromOffsets, getAnnotationSize, getChooser, getColorScheme, getConfineToBase, getCurrentAnnotation, getDefaultType, getNames, getPropertyName, getSelectionMode, getSortedIndex, getValuesForFeature, handlesRelation, hilightChunk, home, hotKeyPressed, indexOfAnnotation, isOutcome, jumpToMark, linkAnnotation, nextFile, nextOutcome, notifyListeners, notifyListeners, prevFile, prevOutcome, redoPerformed, reloadFiles, removeAllAnnotationSchemeListeners, removeAnnotationSchemeListener, set, set, setAnnotatedFile, setAnnotationFilter, setAnnotator, setAnnotatorName, setChooser, setChunkNavigation, setConfineToBase, setFeature, setGuiListener, setJumpAfterAnnotation, setMark, setNavigator, setOneToOne, setOneToOne, setOrientation, setSelectionEnd, setSelectionMode, setSelectionStart, setSelEnd, setSortedIndex, setSortScheme, setTypeName, treeNodesChanged, treeNodesInserted, 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

annotationOther

protected java.lang.String annotationOther

RELATION_FILES

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

RELATION

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

RELATIONS

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

FUNCTION

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

SELECTED

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

CURRENT

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

ARG

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

PROP

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

ROLESET

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

REL_GROUP_ID

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

KOREAN

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

CHINESE

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

ENGLISH

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

var_roles

public java.lang.String[] var_roles

var_types

public java.lang.String[] var_types

styled

protected java.util.List styled

tree

protected AnnotationTree tree

showOutcomes

protected boolean showOutcomes

createUnseenRelations

protected boolean createUnseenRelations

showGroupToggle

protected boolean showGroupToggle

dynamicFrames

protected boolean dynamicFrames
Constructor Detail

RelationAnnotationScheme

public RelationAnnotationScheme(java.lang.String type)

RelationAnnotationScheme

public RelationAnnotationScheme(java.lang.String type,
                                Chooser c)
Method Detail

reload

public void reload()
Description copied from class: AnnotationScheme
Reloads each of the open files. This typically occurs after an automatic annotator has tagged a file and the annotator needs to be updated with the new annotations.

Overrides:
reload in class AnnotationScheme

loadXML

protected void loadXML()
Overrides:
loadXML in class NamedEntityAnnotationScheme

setAnnotationView

public void setAnnotationView(AnnotationView v)
Overrides:
setAnnotationView in class AnnotationScheme

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 NamedEntityAnnotationScheme

initOutcomes

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

Overrides:
initOutcomes in class NamedEntityAnnotationScheme

removeAnnotation

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

unbindAnnotation

public void unbindAnnotation(Annotation a)

getAnnotationsFromFile

public void getAnnotationsFromFile(AnnotationFile af)
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

closeAnnotatedFile

public void closeAnnotatedFile(AnnotationFile f)
Description copied from class: AnnotationScheme
Removes annotations in f from the set of possible annotations.

Specified by:
closeAnnotatedFile in interface AnnotatedFileListener
Overrides:
closeAnnotatedFile 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 NamedEntityAnnotationScheme

setFeaturesToDisplay

public void setFeaturesToDisplay(AnnotationSchemeListener al)
Overrides:
setFeaturesToDisplay in class NamedEntityAnnotationScheme

process

public void process()
Overrides:
process in class NamedEntityAnnotationScheme

process

public void process(Annotation ann)
Overrides:
process in class AnnotationScheme

getTypeForRole

public java.lang.String getTypeForRole(java.lang.String role,
                                       java.lang.String relation_type)

set

public void set(java.lang.String choice,
                int modifiers,
                boolean jump,
                Annotation selectedAnnotation)
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 DerivativeAnnotationScheme

treeNodesRemoved

public void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesRemoved in interface javax.swing.event.TreeModelListener
Overrides:
treeNodesRemoved in class AnnotationScheme


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