|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--gate.creole.AbstractVisualResource | +--gate.gui.AnnotationEditor
This class implements a viewer/editor for the annotations on a document.
As a viewer, this visual resource will display all the annotations found on
the document. The editor needs to have some data about annotation types in
order to allow the editing of annotations. This data comes from the
AnnotationSchema
objects that are loaded in the Gate
system at a given moment. If there are no such objects the editing of
annotations will be restricted to a very crude method allowing the user to
add any type of annotations having any features with any String values.
Inner Class Summary | |
class |
AnnotationEditor.CustomLabelView
Fixes the 4406598 bug in swing text components. |
class |
AnnotationEditor.CustomStyledEditorKit
Fixes the 4406598 bug in swing text components. |
class |
AnnotationEditor.CustomStyledViewFactory
Fixes the 4406598 bug in swing text components. |
class |
AnnotationEditor.TypeData
Holds the GUI metadata for a given annotation type. |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AnnotationEditor()
Default constructor. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
Document |
getDocument()
Gets the currently displayed document |
boolean |
isEditable()
Is the editor functionality enabled |
boolean |
isFiltersVisible()
Is the right hand side tree shown? |
boolean |
isTableVisible()
Is the annotations table shown? |
boolean |
isTextVisible()
Is the text display shown? |
static void |
main(String[] args)
Test code |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
setDocument(Document newDocument)
Sets the document to be displayed |
void |
setEditable(boolean newEditable)
Should the editor functionality of this component be enabled |
void |
setFiltersVisible(boolean newFiltersVisible)
If set to true the right hand side tree will be displayed. |
void |
setTableVisible(boolean newTableVisible)
If set to true the annotations table will be shown. |
void |
setTextVisible(boolean newTextVisible)
If set to true the text display will be shown. |
Methods inherited from class gate.creole.AbstractVisualResource |
getFeatures, init, setFeatures |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.util.FeatureBearer |
getName, setName |
Constructor Detail |
public AnnotationEditor()
Method Detail |
public static void main(String[] args)
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in class JComponent
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in class JComponent
public void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
addPropertyChangeListener
in class JComponent
public void setDocument(Document newDocument)
newDocument
- a Document
public Document getDocument()
Document
public void setTableVisible(boolean newTableVisible)
public boolean isTableVisible()
public void setTextVisible(boolean newTextVisible)
public boolean isTextVisible()
public void setFiltersVisible(boolean newFiltersVisible)
public boolean isFiltersVisible()
public void setEditable(boolean newEditable)
public boolean isEditable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |