/Users/lyon/j4p/src/sound/filterDesign/HsFrame.java

1    package sound.filterDesign; 
2     
3    // Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov. 
4    // Jad home page: http://www.geocities.com/kpdus/jad.html 
5    // Decompiler options: packimports(3)  
6    // Source File Name:   HsFrame.java 
7     
8    import java.awt.*; 
9    import java.awt.event.ActionEvent; 
10   import java.awt.event.ActionListener; 
11   import java.awt.event.WindowAdapter; 
12   import java.awt.event.WindowEvent; 
13   import java.util.Vector; 
14    
15   public class HsFrame extends Frame 
16           implements ActionListener { 
17    
18       public HsFrame() { 
19           super("| H(s) |"); 
20           canvas = new HsCanvas(); 
21           mainMenu = new MenuBar(); 
22           help = new Menu("Help"); 
23           file = new Menu("Window"); 
24           close = new MenuItem("Close"); 
25           file.add(close); 
26           mainMenu.add(file); 
27           mainMenu.setHelpMenu(help); 
28           setMenuBar(mainMenu); 
29           setSize(300, 300); 
30           setCursor(new Cursor(1)); 
31           setVisible(false); 
32           addWindowListener(new WindowAdapter() { 
33    
34               public void windowClosing(WindowEvent windowevent) { 
35                   setVisible(false); 
36               } 
37    
38           }); 
39           close.addActionListener(this); 
40           add(canvas); 
41       } 
42    
43       public void actionPerformed(ActionEvent actionevent) { 
44           Object obj = actionevent.getSource(); 
45           if (obj == close) 
46               setVisible(false); 
47       } 
48    
49       public void wake(Vector vector, 
50                        Vector vector1, 
51                        Dimension dimension, 
52                        double d, 
53                        double d1) { 
54           setSize(dimension.width + 10, dimension.height + 70); 
55           canvas.newInfo(vector, vector1, dimension, d, d1); 
56           setVisible(true); 
57       } 
58    
59       HsCanvas canvas; 
60       MenuBar mainMenu; 
61       Menu help; 
62       Menu file; 
63       MenuItem close; 
64   } 
65