gate.gui.annedit
Interface OwnedAnnotationEditor

All Superinterfaces:
AnnotationVisualResource, FeatureBearer, NameBearer, Resource, Serializable, VisualResource
All Known Implementing Classes:
AnnotationEditor, SchemaAnnotationEditor

public interface OwnedAnnotationEditor
extends AnnotationVisualResource

Interface for all annotation editor components


Method Summary
 void changeOrientation(ComponentOrientation orientation)
          Changes the orientation of components
 AnnotationEditorOwner getOwner()
           
 void placeDialog(int start, int end)
          Finds the best location for the editor dialog for a given span of text
 void setEditingEnabled(boolean isEditingEnabled)
          Enable or disable the editing GUI components.
 void setOwner(AnnotationEditorOwner owner)
          Sets the owner (i.e. controller) for this editor.
 void setPinnedMode(boolean pinned)
           
 
Methods inherited from interface gate.creole.AnnotationVisualResource
cancelAction, canDisplayAnnotationType, editAnnotation, editingFinished, getAnnotationCurrentlyEdited, getAnnotationSetCurrentlyEdited, isActive, okAction, supportsCancel
 
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
 

Method Detail

placeDialog

void placeDialog(int start,
                 int end)
Finds the best location for the editor dialog for a given span of text


setOwner

void setOwner(AnnotationEditorOwner owner)
Sets the owner (i.e. controller) for this editor.

Parameters:
owner -

getOwner

AnnotationEditorOwner getOwner()
Returns:
owner The owner (i.e. controller) for this editor.

setPinnedMode

void setPinnedMode(boolean pinned)
Parameters:
pinned - true if the window should not move when an annotation is selected.

setEditingEnabled

void setEditingEnabled(boolean isEditingEnabled)
Enable or disable the editing GUI components.

Parameters:
isEditingEnabled - true to enable the editing, false to disable it

changeOrientation

void changeOrientation(ComponentOrientation orientation)
Changes the orientation of components

Parameters:
orientation -