|
|||||||||||
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
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
|
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()
Clears the internal data of the resource, when it gets released |
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)
|
(package private) void |
setLastAnnotationType(String annType)
Sets the last annotation type created (which will be used as a default for creating new annotations). |
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 |
List setHandlers
List tableRows
XJTable mainTable
AnnotationSetsView.SetsTableModel tableModel
JScrollPane scroller
JPanel mainPanel
JTextField newSetNameTextField
TextualDocumentView textView
JEditorPane textPane
AnnotationEditor annotationEditor
AnnotationSetsView.NewAnnotationSetAction newSetAction
protected AnnotationSetsView.TextMouseListener textMouseListener
protected Timer mouseMovementTimer
private static final int MOUSE_MOVEMENT_TIMER_DELAY
protected AncestorListener textAncestorListener
protected AnnotationSetsView.MouseStoppedMovingAction mouseStoppedMovingAction
protected String lastAnnotationType
protected List actions
protected ColorGenerator colourGenerator
private static final int NAME_COL
private static final int SELECTED_COL
Constructor Detail |
public AnnotationSetsView()
Method Detail |
public List getActions()
ActionsPublisher
getActions
in interface ActionsPublisher
getActions
in class AbstractDocumentView
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()
Resource
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)
void setLastAnnotationType(String annType)
annType
- the type of annotation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |