|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Describes the callbacks that an object listening to a Viewer must handle.
Viewer| Method Summary | |
java.lang.String[] |
getValuesForFeature(java.lang.String f)
Returns the set of valid values for the specified feature. |
boolean |
linkAnnotation(Annotation source,
Annotation target,
int modifiers)
Requests that the specified source annotation be linked to the specified target annotation given the modifiers. |
boolean |
moveAnnotation(Annotation child,
Annotation newParent,
Annotation oldParent)
Requests that the specified child annotation be moved form the specified old parent to the specified new parent. |
void |
reloadFiles(java.lang.String encoding)
Requests that all loaded files be reloaded using the specified encoding or the default encoding is the specified encoding is null. |
void |
selectCurrentAnnotation()
Requests that the current annotation be selected. |
void |
setSelection(AnnotationSelection anns)
Requests that the specified annotation selection should be set as the current selection. |
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 |
setSelectionEnd(int offset)
Specifies that a selection is being made which ends at the specified offset. |
void |
setSelectionStart(int offset)
Specifies that a selection is being made which starts at the specified offset. |
| Methods inherited from interface org.annotation.wordfreak.chooser.ChooserListener |
down, next, nextFile, nextOutcome, prev, prevFile, prevOutcome, set, set, set, set, setAnnotation, up |
| Method Detail |
public boolean linkAnnotation(Annotation source,
Annotation target,
int modifiers)
ConstituentAnnotaitonScheme.
source - The source annotation.target - The target annotation.modifiers - The modifiers selected when this action was taken.
public boolean moveAnnotation(Annotation child,
Annotation newParent,
Annotation oldParent)
child - The annotation to be moved.newParent - The parent under which the specified child should be placed.oldParent - The previous parent.
public void reloadFiles(java.lang.String encoding)
encoding - The encoding which should be used to reload the files.public void setSelection(AnnotationSelection anns)
anns - The annotations to be selected.
public void setSelection(AnnotationSelection anns,
boolean validate)
anns - The annotations to be selected.validate - Whether the annotaitons should be adjusted to be a valid selection.public void setSelectionStart(int offset)
offset - The start of the selection.public void setSelectionEnd(int offset)
offset - The end of the selection.public java.lang.String[] getValuesForFeature(java.lang.String f)
f - The feature whose value are being requested.
public void selectCurrentAnnotation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||