gate.gui
Class LuceneDataStoreSearchGUI.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.LuceneDataStoreSearchGUI.AnnotationMouseListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
Enclosing class:
LuceneDataStoreSearchGUI

protected class LuceneDataStoreSearchGUI.AnnotationMouseListener
extends AnnotationStack.StackMouseListener

Modifies the query or displays statistics according to the annotation rectangle clicked.


Field Summary
(package private)  String annotationSetID
           
(package private)  String annotationSetName
           
(package private)  String corpusID
           
(package private)  String corpusName
           
(package private)  String description
           
(package private)  String descriptionTemplate
           
(package private)  int dismissDelay
           
(package private)  boolean enabled
           
(package private)  String feature
           
(package private)  int initialDelay
           
(package private)  boolean isTooltipSet
           
(package private)  JMenuItem menuItem
           
(package private)  JPopupMenu mousePopup
           
(package private)  int reshowDelay
           
(package private)  String text
           
(package private)  String toolTip
           
(package private)  ToolTipManager toolTipManager
           
(package private)  String toolTipTemplate
           
(package private)  String type
           
 
Constructor Summary
LuceneDataStoreSearchGUI.AnnotationMouseListener()
           
LuceneDataStoreSearchGUI.AnnotationMouseListener(String type)
           
LuceneDataStoreSearchGUI.AnnotationMouseListener(String type, String feature, String text)
           
 
Method Summary
private  void addStatistics(String kind, int count, int numRow, MouseEvent e)
           
private  int checkStatistics()
           
 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)
private  void createPopup(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
private  void updateQuery()
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, 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.MouseListener
mouseClicked
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Field Detail

type

String type

feature

String feature

text

String text

description

String description

toolTip

String toolTip

descriptionTemplate

String descriptionTemplate

toolTipTemplate

String toolTipTemplate

mousePopup

JPopupMenu mousePopup

menuItem

JMenuItem menuItem

corpusID

final String corpusID

annotationSetID

final String annotationSetID

corpusName

final String corpusName

annotationSetName

final String annotationSetName

toolTipManager

ToolTipManager toolTipManager

dismissDelay

int dismissDelay

initialDelay

int initialDelay

reshowDelay

int reshowDelay

enabled

boolean enabled

isTooltipSet

boolean isTooltipSet
Constructor Detail

LuceneDataStoreSearchGUI.AnnotationMouseListener

public LuceneDataStoreSearchGUI.AnnotationMouseListener()

LuceneDataStoreSearchGUI.AnnotationMouseListener

public LuceneDataStoreSearchGUI.AnnotationMouseListener(String type,
                                                        String feature,
                                                        String text)

LuceneDataStoreSearchGUI.AnnotationMouseListener

public LuceneDataStoreSearchGUI.AnnotationMouseListener(String type)
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

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

mousePressed

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

mouseReleased

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

updateQuery

private void updateQuery()

checkStatistics

private int checkStatistics()

addStatistics

private void addStatistics(String kind,
                           int count,
                           int numRow,
                           MouseEvent e)

createPopup

private void createPopup(MouseEvent e)