/Users/lyon/j4p/src/j2d/edge/TemplatePanel.java

1    /* 
2     * Created by DocJava, Inc. 
3     * User: lyon 
4     * Date: Mar 2, 2003 
5     * Time: 5:12:56 PM 
6     */ 
7    package j2d.edge; 
8     
9    import gui.run.RunButton; 
10   import j2d.ImageProcessListener; 
11    
12   import javax.swing.*; 
13   import java.awt.*; 
14    
15   public class TemplatePanel 
16           extends JPanel { 
17    
18       private double threshold = 0; 
19       ImageProcessListener ipl = null; 
20    
21    
22       public TemplatePanel(ImageProcessListener _ipl) { 
23           ipl = _ipl; 
24    
25           setLayout(new GridLayout(3, 0)); 
26    
27           add(new RunButton("FreiChen") { 
28               public void run() { 
29                   ipl.update(new FreiChenProcessor()); 
30               } 
31           }); 
32    
33       } 
34    
35   } 
36