|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.creole.AbstractVisualResource
gate.gui.UnrestrictedAnnotationEditor
public class UnrestrictedAnnotationEditor
This class visually adds/edits features and annot type of an annotation
It does this without using an AnnotationSchema.
The user can manipulate annotation and features at his own will.
It's his responsability.
This class has been deprecated! The functionality is now provided by the
AnnotationEditor class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class gate.creole.AbstractVisualResource |
|---|
features, handle |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
UnrestrictedAnnotationEditor()
Deprecated. Default constructor |
|
| Method Summary | |
|---|---|
void |
cancelAction()
Deprecated. Called by the GUI when the user has pressed the "Cancel" button. |
boolean |
canDisplayAnnotationType(String annotationType)
Deprecated. Checks whether this viewer/editor can handle a specific annotation type. |
void |
editAnnotation(Annotation ann,
AnnotationSet set)
Deprecated. Used when the viewer/editor has to display/edit an existing annotation |
boolean |
editingFinished()
Deprecated. Returns true |
Annotation |
getAnnotationCurrentlyEdited()
Deprecated. |
AnnotationSet |
getAnnotationSetCurrentlyEdited()
Deprecated. |
String |
getAnnotType()
Deprecated. Returns annot type edited with this tool |
protected FeatureMap |
getCurrentAnnotationFeatures()
Deprecated. Returns the features edited with this tool |
protected void |
initGuiComponents()
Deprecated. Init GUI components with values taken from local data |
protected void |
initListeners()
Deprecated. Init all the listeners |
protected void |
initLocalData()
Deprecated. Init local data |
boolean |
isActive()
Deprecated. Checks whether the annotation editor is active (shown on screen and ready to edit annotations. |
void |
okAction()
Deprecated. Called by the GUI when the user has pressed the "OK" button. |
boolean |
supportsCancel()
Deprecated. Returns true. |
| Methods inherited from class gate.creole.AbstractVisualResource |
|---|
cleanup, getFeatures, getParameterValue, init, setFeatures, setHandle, setParameterValue, setParameterValues, setTarget |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public UnrestrictedAnnotationEditor()
| Method Detail |
|---|
public void editAnnotation(Annotation ann,
AnnotationSet set)
editAnnotation in interface AnnotationVisualResourceann - the annotation to be displayed or edited. If ann is null then
the method simply returnsset - the set to which the new annotation belongs.
public void okAction()
throws GateException
okAction in interface AnnotationVisualResourceGateException
public void cancelAction()
throws GateException
AnnotationVisualResource
cancelAction in interface AnnotationVisualResourceGateExceptionpublic boolean canDisplayAnnotationType(String annotationType)
canDisplayAnnotationType in interface AnnotationVisualResourceannotationType - represents the annotation type being questioned.If
it is null then the method will return false.
public boolean editingFinished()
editingFinished in interface AnnotationVisualResourcepublic Annotation getAnnotationCurrentlyEdited()
getAnnotationCurrentlyEdited in interface AnnotationVisualResourcepublic AnnotationSet getAnnotationSetCurrentlyEdited()
getAnnotationSetCurrentlyEdited in interface AnnotationVisualResourcepublic boolean isActive()
AnnotationVisualResource
isActive in interface AnnotationVisualResourcepublic boolean supportsCancel()
supportsCancel in interface AnnotationVisualResourceprotected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
public String getAnnotType()
protected FeatureMap getCurrentAnnotationFeatures()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||