gate.gui.docview
Class AnnotationEditor
java.lang.Object
gate.gui.docview.AnnotationEditor
public class AnnotationEditor
- extends Object
- Author:
- Valentin Tablan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bottomWindow
protected JWindow bottomWindow
typeCombo
protected JComboBox typeCombo
featuresEditor
protected FeaturesSchemaEditor featuresEditor
scroller
protected JScrollPane scroller
solAction
protected AnnotationEditor.StartOffsetLeftAction solAction
sorAction
protected AnnotationEditor.StartOffsetRightAction sorAction
eolAction
protected AnnotationEditor.EndOffsetLeftAction eolAction
eorAction
protected AnnotationEditor.EndOffsetRightAction eorAction
dismissAction
protected AnnotationEditor.DismissAction dismissAction
delAction
protected AnnotationEditor.DeleteAnnotationAction delAction
hideTimer
protected Timer hideTimer
HIDE_DELAY
protected static final int HIDE_DELAY
- See Also:
- Constant Field Values
SHIFT_INCREMENT
protected static final int SHIFT_INCREMENT
- See Also:
- Constant Field Values
CTRL_SHIFT_INCREMENT
protected static final int CTRL_SHIFT_INCREMENT
- See Also:
- Constant Field Values
highlight
protected Object highlight
schemasByType
protected Map schemasByType
- Stores the Annotation schema objects available in the system.
The annotation types are used as keys for the map.
textView
protected TextualDocumentView textView
setsView
protected AnnotationSetsView setsView
textPane
protected JEditorPane textPane
ann
protected Annotation ann
set
protected AnnotationSet set
AnnotationEditor
public AnnotationEditor(TextualDocumentView textView,
AnnotationSetsView setsView)
initData
protected void initData()
initBottomWindow
protected void initBottomWindow(Window parent)
initListeners
protected void initListeners()
initGUI
protected void initGUI()
setAnnotation
public void setAnnotation(Annotation ann,
AnnotationSet set)
isShowing
public boolean isShowing()
show
public void show(boolean autohide)
- Shows the UI(s) involved in annotation editing.
placeWindows
protected void placeWindows()
moveAnnotation
protected void moveAnnotation(AnnotationSet set,
Annotation oldAnnotation,
Long newStartOffset,
Long newEndOffset)
throws InvalidOffsetException
- Changes the span of an existing annotation by creating a new annotation
with the same ID, type and features but with the new start and end offsets.
- Parameters:
set
- the annotation setoldAnnotation
- the annotation to be movednewStartOffset
- the new start offsetnewEndOffset
- the new end offset
- Throws:
InvalidOffsetException
hide
public void hide()