MCPcopy Create free account
hub / github.com/GateNLP/gate-core / handleMouseEvent

Method handleMouseEvent

src/main/java/gate/gui/PRViewer.java:74–82  ·  view source on GitHub ↗
(MouseEvent e)

Source from the content-addressed store, hash-verified

72 protected void initListeners(){
73 editor.addMouseListener(new MouseAdapter() {
74 private void handleMouseEvent(MouseEvent e){
75 if(e.isPopupTrigger()){
76 int row = editor.rowAtPoint(e.getPoint());
77 int col = editor.columnAtPoint(e.getPoint());
78 JPopupMenu popup =new JPopupMenu();
79 popup.add(new CopyValueAction(row, col));
80 popup.show(editor,e.getX(), e.getY());
81 }
82 }
83
84 @Override
85 public void mousePressed(MouseEvent e) {

Callers 3

mousePressedMethod · 0.95
mouseReleasedMethod · 0.95
mouseClickedMethod · 0.95

Calls 3

rowAtPointMethod · 0.80
addMethod · 0.65
showMethod · 0.45

Tested by

no test coverage detected