View Javadoc

1   /*
2    * @(#)$Id:$
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   * 16.12.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  
27  package org.ximtec.igesture.tool.gesturevisualisation;
28  
29  import java.awt.Dimension;
30  
31  import javax.swing.JLabel;
32  import javax.swing.JPanel;
33  
34  import org.ximtec.igesture.io.GestureDevice;
35  
36  
37  
38  /**
39   * Comment
40   * @version 1.0 16.12.2008
41   * @author Ueli Kurmann
42   */
43  public class NotSupportedInputPanel implements InputPanel{
44  
45     GestureDevice<?,?> gestureDevice;
46     
47     @Override
48     public void init(GestureDevice<?,?> gestureDevice) {
49       this.gestureDevice = gestureDevice;
50     }
51     
52     @Override
53     public JPanel getPanel(Dimension dimension) {
54        JLabel label = new JLabel(gestureDevice.getClass().getName());
55        JPanel panel = new JPanel();
56        panel.setPreferredSize(dimension);
57        panel.add(label);
58        
59        return panel;
60     }
61  }