gate.gui.docview
Class AnnotationStackView.HeaderMouseListener

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.HeaderMouseListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
Enclosing class:
AnnotationStackView

protected class AnnotationStackView.HeaderMouseListener
extends AnnotationStack.StackMouseListener


Field Summary
(package private)  String feature
           
(package private)  JWindow popupWindow
           
(package private)  String type
           
 
Constructor Summary
AnnotationStackView.HeaderMouseListener()
           
AnnotationStackView.HeaderMouseListener(String type)
           
AnnotationStackView.HeaderMouseListener(String type, String feature)
           
 
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)
(package private)  void init()
           
 void mouseClicked(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, 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
mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Field Detail

type

String type

feature

String feature

popupWindow

JWindow popupWindow
Constructor Detail

AnnotationStackView.HeaderMouseListener

public AnnotationStackView.HeaderMouseListener()

AnnotationStackView.HeaderMouseListener

public AnnotationStackView.HeaderMouseListener(String type,
                                               String feature)

AnnotationStackView.HeaderMouseListener

public AnnotationStackView.HeaderMouseListener(String type)
Method Detail

init

void init()

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

mouseClicked

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

mouseEntered

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