|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.annotation.wordfreak.AnnotationManager
This class keeps track of the plugin components such as schemes, viewers, and annotators as well as which of these plugins are currently in use and disbatchs events. Event disbatching includes sending filter change events to the components which care about them.
| Field Summary | |
protected java.lang.String |
expression
|
protected int |
findDir
|
| Constructor Summary | |
AnnotationManager()
|
|
| Method Summary | |
void |
addAnnotatorNames(java.util.List names)
Advises the manager that the specified annotator names should be available for filtering. |
void |
addFilterCriteriaListener(FilterCriteriaListener listener)
Adds the specified listener the list of listeners notified of filter criteria changes. |
void |
addMatchCriteria(java.util.List criteria)
Advises the manager that the specified criteria names should be available for filtering. |
void |
addViewer(java.lang.String name)
Indicates that a viewer with the specified name has been added to wordfreak's UI. |
void |
adjudicate()
Indicates that the user has requested to switch into adjudication mode. |
void |
annotate()
Indicates that the user has requested to switch into annotation mode. |
void |
annotationComplete()
Notifies listeners that automatic annotation is complete. |
boolean |
eventTranspired(java.lang.String eventType,
java.lang.Object source)
|
void |
filter()
Indicates that the annotation filter should be applied. |
void |
filterChanged()
Notifes a listening object that the filter has changed. |
static java.lang.String |
getAnnotatorName()
|
java.lang.Object[] |
getAnnotators()
|
java.lang.Object[] |
getSchemes()
|
java.lang.Object[] |
getViewers()
|
void |
removeAnnotatorName(java.util.List names)
Advises the manager that the specified annotator names should be available for filtering unless requested by another source. |
void |
removeFilterCriteriaListener(FilterCriteriaListener listener)
Removes the specified listener the list of listeners notified of filter criteria changes. |
void |
removeMatchCriteria(java.util.List criteria)
Advises the manager that the specified criteria names should be not available for filtering unless requested by another source. |
void |
removeViewer(java.lang.String name)
|
void |
setAnnotationFilter(AnnotationFilter af)
Indicates that the specified filter should be applied to annotations being displayed. |
void |
setAnnotationScheme(java.lang.String as)
Indicates that a scheme with the specified name has been selected. |
void |
setAnnotator(java.lang.String a)
Indicates that the annotator with the specified name has been selected. |
void |
setAnnotatorClasses(java.lang.String[] classes)
|
void |
setAnnotatorName(java.lang.String name)
|
void |
setDataDirectory(java.lang.String dir)
Indicates that the data directory has been set to the specified value. |
void |
setFileRequestListener(FileRequestListener frl)
|
void |
setGuiListener(GuiListener gl)
|
void |
setProject(Project p)
Indicates that the specified project is being used. |
void |
setSavingFilter(AnnotationFilter af)
Indicates that the specified filter should be applied to annotations being used saved. |
void |
setSchemeClasses(java.lang.String[] classes)
|
void |
setTaggingFilter(AnnotationFilter af)
Indicates that the specified filter should be applied to annotations being automatically annotated (tagged). |
void |
setTagSet(java.lang.String ts)
|
void |
setTagSetClasses(java.lang.String[] classes)
|
void |
setTrainingFilter(AnnotationFilter af)
Indicates that the specified filter should be applied to annotations being used for training. |
void |
setViewerClasses(java.lang.String[] classes)
|
void |
setXMLPlugins(java.util.Map[] xml)
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
void |
updateKeyBuffer(java.lang.String buffer)
indicates that the key buffer has changed and now contains the specified buffer contents. |
void |
viewAnnotatedFile(AnnotationFile af)
Indicates that the user wants the specified file to be displayed. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String expression
protected int findDir
| Constructor Detail |
public AnnotationManager()
| Method Detail |
public java.lang.Object[] getViewers()
public java.lang.Object[] getSchemes()
public static java.lang.String getAnnotatorName()
public java.lang.Object[] getAnnotators()
public void setViewerClasses(java.lang.String[] classes)
public void setSchemeClasses(java.lang.String[] classes)
public void setAnnotatorClasses(java.lang.String[] classes)
public void setTagSetClasses(java.lang.String[] classes)
public void setXMLPlugins(java.util.Map[] xml)
public void setFileRequestListener(FileRequestListener frl)
public void setGuiListener(GuiListener gl)
public void updateKeyBuffer(java.lang.String buffer)
WordFreakKeyboardFocusManager.KeyBufferListener
updateKeyBuffer in interface WordFreakKeyboardFocusManager.KeyBufferListenerbuffer - The contents of the key buffer.public void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void setAnnotationFilter(AnnotationFilter af)
SettingsListener
setAnnotationFilter in interface SettingsListeneraf - The filter to apply to loaded annotations.public void setTaggingFilter(AnnotationFilter af)
SettingsListener
setTaggingFilter in interface SettingsListeneraf - The filter to apply to tagged annotations.public void setTrainingFilter(AnnotationFilter af)
SettingsListener
setTrainingFilter in interface SettingsListeneraf - The filter to apply to annotations being used for training.public void setSavingFilter(AnnotationFilter af)
SettingsListener
setSavingFilter in interface SettingsListeneraf - The filter to apply to annotations being saved.public void filterChanged()
AnnotationFilterListener
filterChanged in interface AnnotationFilterListenerpublic void filter()
SettingsListener
filter in interface SettingsListenerpublic void setAnnotatorName(java.lang.String name)
public void annotate()
SettingsListener
annotate in interface SettingsListenerpublic void adjudicate()
SettingsListener
adjudicate in interface SettingsListenerpublic void setAnnotationScheme(java.lang.String as)
SettingsListener
setAnnotationScheme in interface SettingsListeneras - The name of the scheme being used.public void addViewer(java.lang.String name)
SettingsListener
addViewer in interface SettingsListenername - The name of a viewer being used.public void removeViewer(java.lang.String name)
public void viewAnnotatedFile(AnnotationFile af)
SettingsListener
viewAnnotatedFile in interface SettingsListeneraf - The annotation file to be displayed.public void setDataDirectory(java.lang.String dir)
SettingsListener
setDataDirectory in interface SettingsListenerdir - The path of the data directory.public void setAnnotator(java.lang.String a)
SettingsListener
setAnnotator in interface SettingsListenera - The name of the annotator being used.public void setTagSet(java.lang.String ts)
public void setProject(Project p)
SettingsListener
setProject in interface SettingsListenerp - The project that is currently being used.public void annotationComplete()
AnnotatorListener
annotationComplete in interface AnnotatorListener
public boolean eventTranspired(java.lang.String eventType,
java.lang.Object source)
eventTranspired in interface EventListenerpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic void addAnnotatorNames(java.util.List names)
FilterCriteriaManager
addAnnotatorNames in interface FilterCriteriaManagernames - The names of the annotators.public void addFilterCriteriaListener(FilterCriteriaListener listener)
FilterCriteriaManager
addFilterCriteriaListener in interface FilterCriteriaManagerlistener - public void addMatchCriteria(java.util.List criteria)
FilterCriteriaManager
addMatchCriteria in interface FilterCriteriaManagercriteria - The criteria on which filters are based.public void removeAnnotatorName(java.util.List names)
FilterCriteriaManager
removeAnnotatorName in interface FilterCriteriaManagernames - The names of the annotators.public void removeFilterCriteriaListener(FilterCriteriaListener listener)
FilterCriteriaManager
removeFilterCriteriaListener in interface FilterCriteriaManagerlistener - public void removeMatchCriteria(java.util.List criteria)
FilterCriteriaManager
removeMatchCriteria in interface FilterCriteriaManagercriteria - The criteria on which filters are based.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||