gate.gui.docview
Class AnnotationStackView.AnnotationMouseListener

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

 class AnnotationStackView.AnnotationMouseListener
extends AnnotationStack.StackMouseListener


Field Summary
(package private)  Annotation annotation
           
(package private)  AnnotationData annotationData
           
(package private)  int dismissDelay
           
(package private)  boolean enabled
           
(package private)  int initialDelay
           
(package private)  boolean isTooltipSet
           
(package private)  int reshowDelay
           
(package private)  ToolTipManager toolTipManager
           
 
Constructor Summary
AnnotationStackView.AnnotationMouseListener()
           
AnnotationStackView.AnnotationMouseListener(String setName, String annotationId)
           
 
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)
 void mouseClicked(MouseEvent me)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mousePressed(MouseEvent me)
           
 void mouseReleased(MouseEvent me)
           
 void processMouseEvent(MouseEvent me)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseMoved, 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.MouseMotionListener
mouseDragged, mouseMoved
 

Field Detail

toolTipManager

ToolTipManager toolTipManager

dismissDelay

int dismissDelay

initialDelay

int initialDelay

reshowDelay

int reshowDelay

enabled

boolean enabled

annotation

Annotation annotation

annotationData

AnnotationData annotationData

isTooltipSet

boolean isTooltipSet
Constructor Detail

AnnotationStackView.AnnotationMouseListener

public AnnotationStackView.AnnotationMouseListener()

AnnotationStackView.AnnotationMouseListener

public AnnotationStackView.AnnotationMouseListener(String setName,
                                                   String annotationId)
Method Detail

createListener

public MouseInputAdapter createListener(String... parameters)
Description copied from class: AnnotationStack.StackMouseListener
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)

Overrides:
createListener in class AnnotationStack.StackMouseListener
Parameters:
parameters - see above
Returns:
a MouseInputAdapter for the text, header or annotation

mousePressed

public void mousePressed(MouseEvent me)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter

mouseReleased

public void mouseReleased(MouseEvent me)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter

mouseClicked

public void mouseClicked(MouseEvent me)
Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseAdapter

processMouseEvent

public void processMouseEvent(MouseEvent me)

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener
Overrides:
mouseEntered in class MouseAdapter

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener
Overrides:
mouseExited in class MouseAdapter