|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.gui.docview.AbstractDocumentView
gate.gui.docview.AnnotationSetsView
public class AnnotationSetsView
Nested Class Summary | |
---|---|
protected static class |
AnnotationSetsView.AnnotationHandler
|
protected class |
AnnotationSetsView.DeleteSelectedAnnotationGroupAction
|
protected class |
AnnotationSetsView.EditAnnotationAction
|
protected class |
AnnotationSetsView.HighlightMenuItem
The popup menu items used to select annotations Apart from the normal JMenuItem behaviour, this menu
item also highlights the annotation which it would select if pressed. |
protected class |
AnnotationSetsView.MouseStoppedMovingAction
Used to select an annotation for editing. |
protected class |
AnnotationSetsView.NewAnnotationAction
|
protected class |
AnnotationSetsView.NewAnnotationSetAction
|
protected class |
AnnotationSetsView.SavePreserveFormatAction
|
protected class |
AnnotationSetsView.SetHandler
Stores the data related to an annotation set |
protected class |
AnnotationSetsView.SetsTableCellEditor
|
protected class |
AnnotationSetsView.SetsTableCellRenderer
|
protected class |
AnnotationSetsView.SetsTableModel
|
protected class |
AnnotationSetsView.TextMouseListener
A mouse listener used for events in the text view. |
protected class |
AnnotationSetsView.TypeHandler
|
Field Summary | |
---|---|
protected List |
actions
|
protected ColorGenerator |
colourGenerator
|
protected String |
lastAnnotationType
|
protected Timer |
mouseMovementTimer
|
protected AnnotationSetsView.MouseStoppedMovingAction |
mouseStoppedMovingAction
|
protected AncestorListener |
textAncestorListener
|
protected AnnotationSetsView.TextMouseListener |
textMouseListener
The listener for mouse and mouse motion events in the text view. |
Fields inherited from class gate.gui.docview.AbstractDocumentView |
---|
active, document, guiInitialised, handle, owner |
Fields inherited from class gate.creole.AbstractResource |
---|
name |
Fields inherited from class gate.util.AbstractFeatureBearer |
---|
features |
Fields inherited from interface gate.gui.docview.DocumentView |
---|
CENTRAL, HORIZONTAL, VERTICAL |
Constructor Summary | |
---|---|
AnnotationSetsView()
|
Method Summary | |
---|---|
void |
annotationAdded(AnnotationSetEvent e)
Called when a new Annotation has been added |
void |
annotationRemoved(AnnotationSetEvent e)
Called when an Annotation has been removed |
void |
annotationSetAdded(DocumentEvent e)
Called when a new AnnotationSet has been added |
void |
annotationSetRemoved(DocumentEvent e)
Called when an AnnotationSet has been removed |
void |
cleanup()
releases the memory allocated to this resource |
void |
contentEdited(DocumentEvent e)
Called when the content of the document has changed through an edit operation. |
List |
getActions()
Returns a list of Action objects. |
protected Color |
getColor(String annotationType)
|
Component |
getGUI()
Returns the actual UI component this view represents. |
protected AnnotationSetsView.SetHandler |
getSetHandler(String name)
|
int |
getType()
Returns the type of this view. |
protected AnnotationSetsView.TypeHandler |
getTypeHandler(String set,
String type)
|
protected void |
initGUI()
Implementers should override this method and use it for populating the GUI. |
protected void |
initListeners()
|
protected void |
registerHooks()
This method will be called whenever the view becomes active. |
protected void |
saveColor(String annotationType,
Color colour)
|
void |
setTypeSelected(String setName,
String typeName,
boolean selected)
|
protected void |
unregisterHooks()
This method will be called whenever this view becomes inactive. |
Methods inherited from class gate.gui.docview.AbstractDocumentView |
---|
getDocument, isActive, setActive, setHandle, setOwner, setTarget |
Methods inherited from class gate.creole.AbstractResource |
---|
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class gate.util.AbstractFeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.Resource |
---|
getParameterValue, init, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
---|
getName, setName |
Field Detail |
---|
protected AnnotationSetsView.TextMouseListener textMouseListener
protected Timer mouseMovementTimer
protected AncestorListener textAncestorListener
protected AnnotationSetsView.MouseStoppedMovingAction mouseStoppedMovingAction
protected String lastAnnotationType
protected List actions
protected ColorGenerator colourGenerator
Constructor Detail |
---|
public AnnotationSetsView()
Method Detail |
---|
public List getActions()
ActionsPublisher
getActions
in interface ActionsPublisher
getActions
in class AbstractDocumentView
List
of Action
s.public int getType()
DocumentView
getType
in interface DocumentView
DocumentView.CENTRAL
,
DocumentView.HORIZONTAL
,
DocumentView.VERTICAL
protected void initGUI()
AbstractDocumentView
initGUI
in class AbstractDocumentView
public Component getGUI()
DocumentView
getGUI
in interface DocumentView
Component
value.protected Color getColor(String annotationType)
protected void saveColor(String annotationType, Color colour)
protected void registerHooks()
registerHooks
in class AbstractDocumentView
protected void unregisterHooks()
registerHooks()
.
unregisterHooks
in class AbstractDocumentView
protected void initListeners()
public void cleanup()
AbstractResource
cleanup
in interface Resource
cleanup
in class AbstractResource
public void annotationSetAdded(DocumentEvent e)
DocumentListener
AnnotationSet
has been added
annotationSetAdded
in interface DocumentListener
public void annotationSetRemoved(DocumentEvent e)
DocumentListener
AnnotationSet
has been removed
annotationSetRemoved
in interface DocumentListener
public void contentEdited(DocumentEvent e)
contentEdited
in interface DocumentListener
public void annotationAdded(AnnotationSetEvent e)
AnnotationSetListener
Annotation
has been added
annotationAdded
in interface AnnotationSetListener
public void annotationRemoved(AnnotationSetEvent e)
AnnotationSetListener
Annotation
has been removed
annotationRemoved
in interface AnnotationSetListener
protected AnnotationSetsView.SetHandler getSetHandler(String name)
protected AnnotationSetsView.TypeHandler getTypeHandler(String set, String type)
public void setTypeSelected(String setName, String typeName, boolean selected)
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |