144145146147148149150151152153154
*/ public void mouseExited(MouseEvent e) { Debug.message("drawingtooldetail", "DrawingTool.mouseExited"); EditableOMGraphic graphic = getCurrentGraphic(); if (graphic != null) { graphic.mouseExited(e); } } /** *
131132133134135136137138139140141
if (drag_tool != null) { drag_tool.mouseExited(Canvas.this, getGraphics(), e); } else { Tool tool = getToolFor(e); if (tool != null) { tool.mouseExited(Canvas.this, getGraphics(), e); } } } public void mousePressed(MouseEvent e) {
4849505152535455565758
toTest.mouseMoved(null); toTest.mouseClicked(null); toTest.mousePressed(null); toTest.mouseReleased(null); toTest.mouseEntered(null); toTest.mouseExited(null); toTest.mouseWheelMoved(null); } @Test public void passesEventsToHandlers() {
600601602603604605606607608609610
case MouseEvent.MOUSE_MOVED: interactor.mouseMoved(e); break; case MouseEvent.MOUSE_EXITED: interactor.mouseExited(e); break; case MouseEvent.MOUSE_ENTERED: interactor.mouseEntered(e); break;
218219220221222223224225226227228
switch (e.getID()) { case MouseEvent.MOUSE_ENTERED: listener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: listener.mouseExited(e); break; case MouseEvent.MOUSE_PRESSED: listener.mousePressed(e); break; case MouseEvent.MOUSE_RELEASED:
14911492149314941495149614971498149915001501
markerRight = null; panTransform = null; repaint(); AbstractEventDispatcher dispatcher = (AbstractEventDispatcher)userAgent.getEventDispatcher(); dispatcher.mouseExited(e); } /** * Called to do cleanup when a mouse operation has been handled. */
18721873187418751876187718781879188018811882
Object[] lstnrs = m_controls.getArray(); for (int i = 0; i < lstnrs.length; ++i) { Control ctrl = (Control) lstnrs[i]; if (ctrl.isEnabled()) try { ctrl.mouseExited(e); } catch ( Exception ex ) { s_logger.warning( "Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex)); }