|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.annotation.wordfreak.scheme.AnnotationScheme org.annotation.wordfreak.scheme.DerivativeAnnotationScheme org.annotation.wordfreak.scheme.NamedEntityAnnotationScheme
Nested Class Summary |
Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme |
AnnotationScheme.POSFeature |
Field Summary | |
protected java.util.Set |
base
Set of types which are considered base annotations. |
protected java.util.Set |
binary
Stores binary features that can be assigned to an annotation. |
protected static java.lang.String |
COLOR
|
protected java.lang.String[] |
dividers
Stores string used to seperate types and features when displayed together |
protected int |
featureOrientation
Orientation of the feature buttons. |
protected java.lang.String[] |
features
Stores the name of features which can be added to a named-entity annotation. |
protected java.util.Map |
featureValues
Mapping between features names and their values |
protected static java.lang.String |
GROUP
|
protected java.util.Set |
handles
Set of types which this scheme handles. |
static java.lang.String |
HEAD
The feature name used to store head information in annotaitons. |
protected java.lang.String |
iconFeature
The feture name which icons are associated with. |
protected java.util.Map |
iconMap
Mapping between feature values and a resource string path for the icon. |
protected static java.lang.String |
NAME
|
protected java.lang.String[] |
negroups
Stores the name of the group for each name-entity type. |
protected static java.lang.String |
NONE
|
protected int |
outcomeOrientation
Orientation of the outcome buttons. |
static java.lang.String |
ROLE
|
protected java.util.Map |
roles
Stores mapping between types names and a list of roles for that type. |
protected boolean |
showFeatures
Determines whether features are displayed |
protected boolean |
showHead
Determines whether the head component is displayed |
protected static IconSpacer |
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, types, update, UPDATE, view, views |
Constructor Summary | |
NamedEntityAnnotationScheme(java.lang.String xml)
|
|
NamedEntityAnnotationScheme(java.lang.String type,
Chooser c)
|
Method Summary | |
void |
addAnnotationSchemeListener(AnnotationSchemeListener l)
Registers the specified listener for annotation scheme callbacks. |
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. |
protected NamedEntityComponent |
createNamedEntityComponent(boolean showOutcomes)
|
boolean |
handlesAnnotation(Annotation a)
|
boolean |
handlesBaseAnnotation(Annotation a)
|
void |
initOutcomes()
Initalizes the set of outcomes that this scheme can assign an annotation. |
protected void |
loadXML()
|
void |
process()
|
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 |
setConfig(java.util.Map cfg)
Assigns the configuration specific properties of this scheme. |
void |
setFeaturesToDisplay(AnnotationSchemeListener l)
|
Methods inherited from class org.annotation.wordfreak.scheme.DerivativeAnnotationScheme |
addAnnotation, addAnnotation, annotatedFile, annotationFromMouse, findExpression, findExpressionAgain, getInsertCommandFromSelection, getPreprocessing, makeVisible, moveAnnotation, next, offsetToIndex, prev, removeAnnotation, 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 HEAD
protected java.lang.String[] negroups
protected java.lang.String[] features
protected java.lang.String[] dividers
protected java.util.Map roles
protected java.util.Set binary
protected java.util.Map featureValues
protected java.lang.String iconFeature
protected java.util.Map iconMap
protected java.util.Set handles
protected java.util.Set base
protected boolean showFeatures
protected boolean showHead
protected int outcomeOrientation
protected int featureOrientation
public static final java.lang.String ROLE
protected static final java.lang.String NONE
protected static final java.lang.String GROUP
protected static final java.lang.String NAME
protected static final java.lang.String COLOR
protected static IconSpacer tenSpace
Constructor Detail |
public NamedEntityAnnotationScheme(java.lang.String xml)
public NamedEntityAnnotationScheme(java.lang.String type, Chooser c)
Method Detail |
public void initOutcomes()
AnnotationScheme
initOutcomes
in class AnnotationScheme
public void setConfig(java.util.Map cfg)
AnnotationScheme
setConfig
in class AnnotationScheme
cfg
- a mapping between configuration parameters and their values.protected void loadXML()
public void set(java.lang.String choice, int modifiers, boolean jump)
ChooserListener
set
in interface ChooserListener
set
in class AnnotationScheme
public boolean handlesAnnotation(Annotation a)
handlesAnnotation
in class AnnotationScheme
public boolean handlesBaseAnnotation(Annotation a)
handlesBaseAnnotation
in class DerivativeAnnotationScheme
public void addAnnotationSchemeListener(AnnotationSchemeListener l)
AnnotationScheme
addAnnotationSchemeListener
in class AnnotationScheme
l
- The object that will recieve the callbacks.public void setFeaturesToDisplay(AnnotationSchemeListener l)
protected NamedEntityComponent createNamedEntityComponent(boolean showOutcomes)
public void createChooser()
AnnotationScheme
createChooser
in class DerivativeAnnotationScheme
public void process()
process
in class DerivativeAnnotationScheme
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |