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 package org.ximtec.igesture.tool.view.testbench.panel;
27
28 import java.awt.Dimension;
29 import java.net.URL;
30
31 import org.ximtec.igesture.tool.core.Controller;
32 import org.ximtec.igesture.tool.util.HtmlPanel;
33 import org.ximtec.igesture.tool.util.TitleFactory;
34 import org.ximtec.igesture.tool.view.AbstractPanel;
35 import org.ximtec.igesture.tool.view.testbench.wrapper.AlgorithmWrapper;
36
37
38
39
40
41
42
43 public class AlgorithmWrapperPanel extends AbstractPanel {
44
45 public AlgorithmWrapperPanel(Controller controller, AlgorithmWrapper algorithm) {
46 super(controller);
47
48 setTitle(TitleFactory.createStaticTitle(algorithm.getAlgorithm().getSimpleName()));
49
50 URL path = AlgorithmWrapperPanel.class.getClassLoader().getResource(
51 "html/" + algorithm.getAlgorithm().getSimpleName() + ".html");
52
53 HtmlPanel htmlPanel = new HtmlPanel(path, new Dimension(400, 400));
54
55 setContent(htmlPanel);
56
57 }
58 }