gate.gui.docview
Class AnnotationStack.StackMouseListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by gate.gui.docview.AnnotationStack.StackMouseListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
Direct Known Subclasses:
AnnotationStackView.AnnotationMouseListener, AnnotationStackView.HeaderMouseListener, LuceneDataStoreSearchGUI.AnnotationMouseListener, LuceneDataStoreSearchGUI.HeaderMouseListener, LuceneDataStoreSearchGUI.TextMouseListener
Enclosing class:
AnnotationStack

public static class AnnotationStack.StackMouseListener
extends MouseInputAdapter

Extension of a MouseInputAdapter that adds a method to create new Listeners from it.
You must overriden the createListener method.


Constructor Summary
AnnotationStack.StackMouseListener()
           
 
Method Summary
 MouseInputAdapter createListener(String... parameters)
          There is 3 cases for the parameters of createListener: first line of text -> createListener(word) first column, header -> createListener(type), createListener(type, feature) annotation -> createListener(set, type, annotationId), createListener(set, type, feature, value, annotationId)
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Constructor Detail

AnnotationStack.StackMouseListener

public AnnotationStack.StackMouseListener()
Method Detail

createListener

public MouseInputAdapter createListener(String... parameters)
There is 3 cases for the parameters of createListener:
  1. first line of text -> createListener(word)
  2. first column, header -> createListener(type), createListener(type, feature)
  3. annotation -> createListener(set, type, annotationId), createListener(set, type, feature, value, annotationId)

Parameters:
parameters - see above
Returns:
a MouseInputAdapter for the text, header or annotation