gate.gui.docview
Class AnnotationListView
java.lang.Object
gate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.gui.docview.AbstractDocumentView
gate.gui.docview.AnnotationListView
- All Implemented Interfaces:
- ActionsPublisher, AnnotationListener, DocumentView, EventListener, FeatureBearer, NameBearer, Resource, Serializable, VisualResource
- public class AnnotationListView
- extends AbstractDocumentView
- implements AnnotationListener
A tabular view for a list of annotations.
Used as part of the document viewer to display all the annotation currently
highlighted.
- See Also:
- Serialized Form
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, cleanup, getBeanInfo, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected XJTable table
tableModel
protected AnnotationListView.AnnotationTableModel tableModel
scroller
protected JScrollPane scroller
annotationHandlerByTag
protected Map annotationHandlerByTag
tagList
protected List tagList
mainPanel
protected JPanel mainPanel
statusLabel
protected JLabel statusLabel
textView
protected TextualDocumentView textView
TYPE_COL
private static final int TYPE_COL
- See Also:
- Constant Field Values
SET_COL
private static final int SET_COL
- See Also:
- Constant Field Values
START_COL
private static final int START_COL
- See Also:
- Constant Field Values
END_COL
private static final int END_COL
- See Also:
- Constant Field Values
FEATURES_COL
private static final int FEATURES_COL
- See Also:
- Constant Field Values
AnnotationListView
public AnnotationListView()
initGUI
protected void initGUI()
- Description copied from class:
AbstractDocumentView
- Implementers should override this method and use it for populating the GUI.
- Specified by:
initGUI
in class AbstractDocumentView
getGUI
public Component getGUI()
- Description copied from interface:
DocumentView
- Returns the actual UI component this view represents.
- Specified by:
getGUI
in interface DocumentView
- Returns:
- a
Component
value.
initListeners
protected void initListeners()
registerHooks
protected void registerHooks()
- Description copied from class:
AbstractDocumentView
- This method will be called whenever the view becomes active. Implementers
should use this to add hooks (such as mouse listeners) to the other views
as required by their functionality.
- Specified by:
registerHooks
in class AbstractDocumentView
unregisterHooks
protected void unregisterHooks()
- Description copied from class:
AbstractDocumentView
- This method will be called whenever this view becomes inactive.
Implementers should use it to unregister whatever hooks they registered
in
AbstractDocumentView.registerHooks()
.
- Specified by:
unregisterHooks
in class AbstractDocumentView
getType
public int getType()
- Description copied from interface:
DocumentView
- Returns the type of this view.
- Specified by:
getType
in interface DocumentView
- Returns:
- an int value
- See Also:
DocumentView.CENTRAL
,
DocumentView.HORIZONTAL
,
DocumentView.VERTICAL
guiShown
protected void guiShown()
addAnnotation
public void addAnnotation(Object tag,
Annotation ann,
AnnotationSet set)
removeAnnotation
public void removeAnnotation(Object tag)
addAnnotations
public void addAnnotations(Collection tags,
Collection annotations,
AnnotationSet set)
- Adds a batch of annotations in one go. The tags and annotations collections
are accessed through their iterators which are expected to return the
corresponding tag for the right annotation.
This method does not assume it was called from the UI Thread.
- Parameters:
tags
- a collection of tagsannotations
- a collection of annotationsset
- the annotation set to which all the annotations belong.
removeAnnotations
public void removeAnnotations(Collection tags)
annotationUpdated
public void annotationUpdated(AnnotationEvent e)
- Description copied from interface:
AnnotationListener
- Called when an
Annotation
has been updated
- Specified by:
annotationUpdated
in interface AnnotationListener