View Javadoc

1   /*
2    * @(#)$Id: ClearGestureSampleAction.java 787 2010-03-27 15:06:04Z bpuype $
3    *
4    * Author   : Ueli Kurmann, igesture@uelikurmann.ch
5    *                                   
6    *                                   
7    * Purpose  : 
8    *
9    * -----------------------------------------------------------------------
10   *
11   * Revision Information:
12   *
13   * Date       Who     Reason
14   *
15   * 23.03.2008 ukurmann  Initial Release
16   *
17   * -----------------------------------------------------------------------
18   *
19   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20   *
21   * This software is the proprietary information of ETH Zurich.
22   * Use is subject to license terms.
23   * 
24   */
25  
26  package org.ximtec.igesture.tool.view.admin.action;
27  
28  import java.awt.event.ActionEvent;
29  
30  import org.ximtec.igesture.io.GestureDevice;
31  import org.ximtec.igesture.tool.GestureConstants;
32  import org.ximtec.igesture.tool.core.Controller;
33  import org.ximtec.igesture.tool.core.LocateableAction;
34  
35  
36  public class ClearGestureSampleAction extends LocateableAction {
37  
38     GestureDevice<?,?> reader;
39  
40  
41     public ClearGestureSampleAction(Controller controller, GestureDevice<?,?> device) {
42        super(GestureConstants.GESTURE_SAMPLE_CLEAR, controller.getLocator());
43        this.reader = device;
44     }
45  
46  
47     @Override
48     public void actionPerformed(ActionEvent arg0) {
49        reader.clear();
50     }
51  
52  }