3 import java.awt.event.KeyEvent;
4 import java.awt.event.KeyListener;
5 import java.awt.event.MouseEvent;
6 import java.awt.event.MouseListener;
7 import java.awt.event.MouseMotionListener;
8 import java.awt.event.MouseWheelEvent;
11 * This interface defines what should be implemented to intercept interaction
12 * events and create custom behavior.
14 * @see {@link MouseMotionListener} {@link MouseListener} {@link MouseWheelListener}
17 * @author Sebastien Jourdain - sebastien.jourdain@kitware.com, Kitware Inc 2012
18 * @copyright This work was supported by CEA/CESTA
19 * Commissariat a l'Energie Atomique et aux Energies Alternatives,
20 * 15 avenue des Sablieres, CS 60001, 33116 Le Barp, France.
22 public interface vtkEventInterceptor {
27 * @return true if the event has been consumed and should not be forwarded
28 * to the vtkInteractor
30 boolean keyPressed(KeyEvent e);
35 * @return true if the event has been consumed and should not be forwarded
36 * to the vtkInteractor
38 boolean keyReleased(KeyEvent e);
43 * @return true if the event has been consumed and should not be forwarded
44 * to the vtkInteractor
46 boolean keyTyped(KeyEvent e);
51 * @return true if the event has been consumed and should not be forwarded
52 * to the vtkInteractor
54 boolean mouseDragged(MouseEvent e);
59 * @return true if the event has been consumed and should not be forwarded
60 * to the vtkInteractor
62 boolean mouseMoved(MouseEvent e);
67 * @return true if the event has been consumed and should not be forwarded
68 * to the vtkInteractor
70 boolean mouseClicked(MouseEvent e);
75 * @return true if the event has been consumed and should not be forwarded
76 * to the vtkInteractor
78 boolean mouseEntered(MouseEvent e);
83 * @return true if the event has been consumed and should not be forwarded
84 * to the vtkInteractor
86 boolean mouseExited(MouseEvent e);
91 * @return true if the event has been consumed and should not be forwarded
92 * to the vtkInteractor
94 boolean mousePressed(MouseEvent e);
99 * @return true if the event has been consumed and should not be forwarded
100 * to the vtkInteractor
102 boolean mouseReleased(MouseEvent e);
107 * @return true if the event has been consumed and should not be forwarded
108 * to the vtkInteractor
110 boolean mouseWheelMoved(MouseWheelEvent e);