gate.gui.docview
Interface AnnotationList

All Superinterfaces:
ActionsPublisher, DocumentView, FeatureBearer, NameBearer, Resource, Serializable, VisualResource
All Known Implementing Classes:
AnnotationListView

public interface AnnotationList
extends DocumentView

Interface for document views showing a list of annotations.


Field Summary
 
Fields inherited from interface gate.gui.docview.DocumentView
CENTRAL, HORIZONTAL, VERTICAL
 
Method Summary
 AnnotationData getAnnotationAtRow(int row)
          Provides the annotation
 int getRowForAnnotation(AnnotationData aData)
          Returns the display row for a given annotation.
 ListSelectionModel getSelectionModel()
          Obtains the selection model used by this list view.
 
Methods inherited from interface gate.gui.docview.DocumentView
getGUI, getType, isActive, setActive, setOwner, setSelectedAnnotations
 
Methods inherited from interface gate.gui.ActionsPublisher
getActions
 
Methods inherited from interface gate.VisualResource
setHandle, setTarget
 
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

getSelectionModel

ListSelectionModel getSelectionModel()
Obtains the selection model used by this list view.

Returns:
a ListSelectionModel object.

getAnnotationAtRow

AnnotationData getAnnotationAtRow(int row)
Provides the annotation


getRowForAnnotation

int getRowForAnnotation(AnnotationData aData)
Returns the display row for a given annotation.

Parameters:
aData - the annotation for which the row is required
Returns:
a positive int value if the annotation is found or -1 otherwise