|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationVisualResource
Visual Resources that display and/or edit annotations. This type of resources can be used to either display or edit existing annotations or to create new annotations.
Method Summary | |
---|---|
void |
cancelAction()
Called by the GUI when the user has pressed the "Cancel" button. |
boolean |
canDisplayAnnotationType(String annotationType)
Checks whether this viewer/editor can handle a specific annotation type. |
void |
okAction()
Called by the GUI when the user has pressed the "OK" button. |
void |
setAnnotation(Annotation ann)
Used when the viewer/editor has to display/edit an existing annotation |
void |
setSpan(Long startOffset,
Long endOffset,
String annotationType)
Used when the viewer has to create new annotations. |
void |
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a specific annotation or text span. |
Methods inherited from interface gate.VisualResource |
---|
setHandle |
Methods inherited from interface gate.Resource |
---|
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
---|
getName, setName |
Method Detail |
---|
void setTarget(Object target)
setTarget
in interface VisualResource
target
- the object which will always be a AnnotationSet
void setAnnotation(Annotation ann)
ann
- the annotation to be displayed or editedvoid setSpan(Long startOffset, Long endOffset, String annotationType)
startOffset
- the start offset of the span covered by the new
annotation(s)endOffset
- the end offset of the span covered by the new
annotation(s)void okAction() throws GateException
GateException
void cancelAction() throws GateException
GateException
boolean canDisplayAnnotationType(String annotationType)
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |