|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.annotation.wordfreak.scheme.AnnotationSchemeAdapter
| Constructor Summary | |
AnnotationSchemeAdapter()
|
|
| Method Summary | |
void |
addAnnotation(Annotation a)
Designates that the specified annotation has been added |
void |
addAnnotation(Annotation a,
Annotation p)
|
void |
addProperty(DynamicFeature f)
|
void |
addProperty(DynamicFeature f,
java.lang.String s)
|
void |
addProperty(DynamicFeature f,
java.lang.String l,
java.lang.String s)
|
void |
addProperty(java.lang.String f)
|
void |
addProperty(java.lang.String f,
java.lang.String s)
|
void |
addStyle(java.lang.String name,
javax.swing.text.AttributeSet as)
This allows an AnnotationScheme to change the
background color for a particular annotation |
void |
annotation(Annotation a)
Notifies the listener to focus display the specified annotation. |
void |
clearAnnotationHighlights()
|
void |
file(AnnotationFile af)
Notifies the listener that the specified annotation file should be presented to the user. |
void |
highlightAnnotation(Annotation a,
java.awt.Color c)
|
void |
makeVisible(Annotation a)
Notifies the listener to make sure the annotation is visible |
void |
markOutcomes(Annotation[] codes,
java.awt.Color c)
|
void |
markOutcomes(java.lang.String[] codes,
java.awt.Color c)
Specifies a set of outcomes for this annotation and designates the color that should be used to disply them. |
void |
moveAnnotation(Annotation a)
Designates that the specified annotation is about to be moved. |
void |
outcomes(java.lang.String[] names)
This allows an AnnotationScheme to change the
outcomes presented to the user. |
void |
outcomes(java.lang.String[] names,
java.lang.String[] codes)
This allows an AnnotationScheme to change the
outcomes presented to the user. |
void |
outcomes(java.lang.String[] names,
java.lang.String[] codes,
java.util.Map groups)
This allows an AnnotationScheme to change the
outcomes presented to the user. |
void |
progress(double p)
|
void |
progress(int x,
int n)
|
void |
refresh()
Notifies the listener that annotated files have been filtered in the scheme and may need to be redisplayed |
void |
refresh(Annotation a)
Notifies the listen that the specified annotation needs to be redrawn. |
void |
reloadedFiles()
Notifies the listener that annotated files have been reloaded in the scheme and may have been changed in arbitrary ways. |
void |
removeAnnotatedFile(AnnotationFile af)
|
void |
removeAnnotation(Annotation a)
Designates that the specified annotation has been removed. |
void |
removeContextualMenuItems(javax.swing.JMenuItem[] menus)
|
void |
select(Annotation a)
Notifies the listner that the specified annotation should be displayed as selected. |
void |
select(AnnotationSelection annotations)
Notifies the listener that the specified selection should be displayed as selected. |
void |
select(Span s)
Notifies the listner that the specified selection span should be displayed as selected. |
void |
setAnnotationStyle(Annotation a,
java.lang.String name)
|
void |
setAnnotationView(AnnotationView view)
Indicates that annotations from the specified view should be processed. |
void |
setBackgroundColor(Annotation a,
java.awt.Color c)
|
void |
setColorScheme(java.util.Map cs)
Provides a mapping between outcomes and colors for display purposes. |
void |
setContextualMenuItems(javax.swing.JMenuItem[] menus)
|
void |
setContextualMenuItems(javax.swing.JMenuItem[] menus,
java.lang.String[] alt_names,
int[] mods)
|
void |
setIcons(javax.swing.Icon[] icons)
|
void |
setProperty(DynamicFeature f)
|
void |
setProperty(DynamicFeature f,
java.lang.String s)
|
void |
setProperty(DynamicFeature f,
java.lang.String l,
java.lang.String s)
|
void |
setProperty(java.lang.String f)
Designates that the specified property should be used for displaying label information about annotations handled by the caller. |
void |
setProperty(java.lang.String f,
java.lang.String s)
|
void |
setSortCriteria(SortCriteria s)
Indicates that the annotations will be sorted based on the specified sort criteria. |
void |
showRelations(boolean b)
Specifies whether the scheme wants relations to be displayed based on the specified parameter. |
void |
updateAnnotation(Annotation a)
Designates that the specified annotation has been changed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AnnotationSchemeAdapter()
| Method Detail |
public void outcomes(java.lang.String[] names)
AnnotationSchemeListenerAnnotationScheme to change the
outcomes presented to the user.
outcomes in interface AnnotationSchemeListenernames - The names for the outcome to be displayed to the user and used in the file..
public void outcomes(java.lang.String[] names,
java.lang.String[] codes)
AnnotationSchemeListenerAnnotationScheme to change the
outcomes presented to the user.
outcomes in interface AnnotationSchemeListenernames - The names for the outcome to be displayed to the user.codes - The string to be stored in the file for this selection.
public void outcomes(java.lang.String[] names,
java.lang.String[] codes,
java.util.Map groups)
AnnotationSchemeListenerAnnotationScheme to change the
outcomes presented to the user.
outcomes in interface AnnotationSchemeListenernames - The names for the outcome to be displayed to the user.codes - The string to be stored in the file for this selection.groups - A mapping from group labels to a set of names for that group.public void setIcons(javax.swing.Icon[] icons)
setIcons in interface AnnotationSchemeListenerpublic void file(AnnotationFile af)
AnnotationSchemeListener
file in interface AnnotationSchemeListenerpublic void annotation(Annotation a)
AnnotationSchemeListener
annotation in interface AnnotationSchemeListenera - The annotation to be displayed.public void refresh(Annotation a)
AnnotationSchemeListener
refresh in interface AnnotationSchemeListenera - The annotation that needs to be refreshed.public void select(Annotation a)
AnnotationSchemeListener
select in interface AnnotationSchemeListenera - the annotation to be selected.public void select(Span s)
AnnotationSchemeListener
select in interface AnnotationSchemeListeners - the span to be selected.public void select(AnnotationSelection annotations)
AnnotationSchemeListener
select in interface AnnotationSchemeListenerannotations - the selection to be selected.
public void addStyle(java.lang.String name,
javax.swing.text.AttributeSet as)
AnnotationSchemeListenerAnnotationScheme to change the
background color for a particular annotation
addStyle in interface AnnotationSchemeListener
public void setAnnotationStyle(Annotation a,
java.lang.String name)
setAnnotationStyle in interface AnnotationSchemeListener
public void setBackgroundColor(Annotation a,
java.awt.Color c)
setBackgroundColor in interface AnnotationSchemeListener
public void highlightAnnotation(Annotation a,
java.awt.Color c)
highlightAnnotation in interface AnnotationSchemeListenerpublic void clearAnnotationHighlights()
clearAnnotationHighlights in interface AnnotationSchemeListenerpublic void showRelations(boolean b)
AnnotationSchemeListener
showRelations in interface AnnotationSchemeListenerb - indicates that relations should or shouldn't be displayed.public void updateAnnotation(Annotation a)
AnnotationSchemeListener
updateAnnotation in interface AnnotationSchemeListenera - The changed annotation.public void addAnnotation(Annotation a)
AnnotationSchemeListener
addAnnotation in interface AnnotationSchemeListenera - The added annotation.
public void addAnnotation(Annotation a,
Annotation p)
addAnnotation in interface AnnotationSchemeListenerpublic void removeAnnotation(Annotation a)
AnnotationSchemeListener
removeAnnotation in interface AnnotationSchemeListenera - The annotation which is being removed.public void moveAnnotation(Annotation a)
AnnotationSchemeListener
moveAnnotation in interface AnnotationSchemeListenera - The annotation which is being moved.public void removeAnnotatedFile(AnnotationFile af)
public void progress(int x,
int n)
progress in interface AnnotationSchemeListenerpublic void progress(double p)
progress in interface AnnotationSchemeListener
public void markOutcomes(java.lang.String[] codes,
java.awt.Color c)
AnnotationSchemeListener
markOutcomes in interface AnnotationSchemeListener
public void markOutcomes(Annotation[] codes,
java.awt.Color c)
markOutcomes in interface AnnotationSchemeListenerpublic void setColorScheme(java.util.Map cs)
AnnotationSchemeListener
setColorScheme in interface AnnotationSchemeListenerpublic void setProperty(java.lang.String f)
AnnotationSchemeListener
setProperty in interface AnnotationSchemeListenerf - the name of the property to be used as the default label property.
public void setProperty(java.lang.String f,
java.lang.String s)
setProperty in interface AnnotationSchemeListenerpublic void addProperty(java.lang.String f)
addProperty in interface AnnotationSchemeListener
public void addProperty(java.lang.String f,
java.lang.String s)
addProperty in interface AnnotationSchemeListenerpublic void setProperty(DynamicFeature f)
setProperty in interface AnnotationSchemeListener
public void setProperty(DynamicFeature f,
java.lang.String s)
setProperty in interface AnnotationSchemeListener
public void setProperty(DynamicFeature f,
java.lang.String l,
java.lang.String s)
setProperty in interface AnnotationSchemeListenerpublic void addProperty(DynamicFeature f)
addProperty in interface AnnotationSchemeListener
public void addProperty(DynamicFeature f,
java.lang.String s)
addProperty in interface AnnotationSchemeListener
public void addProperty(DynamicFeature f,
java.lang.String l,
java.lang.String s)
addProperty in interface AnnotationSchemeListenerpublic void reloadedFiles()
AnnotationSchemeListener
reloadedFiles in interface AnnotationSchemeListenerpublic void refresh()
AnnotationSchemeListener
refresh in interface AnnotationSchemeListenerpublic void setSortCriteria(SortCriteria s)
AnnotationSchemeListener
setSortCriteria in interface AnnotationSchemeListeners - public void setAnnotationView(AnnotationView view)
AnnotationSchemeListenernull then there are currently no annotations to process.
Typically processing entails displaying the annotations.
setAnnotationView in interface AnnotationSchemeListenerview - The current view for the scheme.public void setContextualMenuItems(javax.swing.JMenuItem[] menus)
setContextualMenuItems in interface AnnotationSchemeListener
public void setContextualMenuItems(javax.swing.JMenuItem[] menus,
java.lang.String[] alt_names,
int[] mods)
setContextualMenuItems in interface AnnotationSchemeListenerpublic void removeContextualMenuItems(javax.swing.JMenuItem[] menus)
removeContextualMenuItems in interface AnnotationSchemeListenerpublic void makeVisible(Annotation a)
AnnotationSchemeListener
makeVisible in interface AnnotationSchemeListenera - the annotation to make visible
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||