View Javadoc

1   /*
2    * @(#)$Id: MouseHandler.java 689 2009-07-22 00:10:27Z bsigner $
3    *
4    * Author       :   Michele Croci, mcroci@gmail.com
5    *
6    * Purpose      :   Signature for a mouse callback function
7    *
8    * -----------------------------------------------------------------------
9    *
10   * Revision Information:
11   *
12   * Date             Who         Reason
13   *
14   * Jan 17, 2008      crocimi     Initial Release
15   *
16   * -----------------------------------------------------------------------
17   *
18   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
19   *
20   * This software is the proprietary information of ETH Zurich.
21   * Use is subject to license terms.
22   * 
23   */
24  
25  
26  package org.ximtec.igesture.io.mouse;
27  
28  import java.util.EnumSet;
29  
30  import org.ximtec.igesture.io.mouse.MouseUtils.MouseButton;
31  
32  
33  /**
34   * Signature for a mouse callback function
35   * @version 1.0 Jan 17, 2008
36   * @author Michele Croci, mcroci@gmail.com
37   * @author Ueli Kurmann, ueli.kurmann@bbv.ch
38   */
39  public interface MouseHandler {
40  
41     
42     /**
43      * Receives mouse events
44      * @param x
45      * @param y
46      * @param buttons
47      */ 
48     public void handleMouseEvent(int x, int y, EnumSet<MouseButton> buttons);
49        
50  }