1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
40
41
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 }