/Users/lyon/j4p/src/sound/filterDesign/Zero.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:   Zero.java 
7     
8    import java.awt.*; 
9     
10   public class Zero extends Root { 
11    
12       public Zero() { 
13       } 
14    
15       public Zero(double d, double d1) { 
16           super(d, d1); 
17       } 
18    
19       public Zero(Zero zero) { 
20           super(zero); 
21       } 
22    
23       public Zero conj() { 
24           return new Zero(super.real, -super.imag); 
25       } 
26    
27       public String toString() { 
28           return "Zero at: " + super.real + "," + super.imag; 
29       } 
30    
31       public void draw(Graphics g, double d, double d1, int i, int j) { 
32           int k = (int) Math.rint( 
33                   (getReal() * (double) i) / (2D * d) + (double) (i / 2)); 
34           int l = (int) Math.rint( 
35                   (-getImag() * (double) j) / (2D * d1) + (double) (j / 2)); 
36           g.drawArc(k - 5, l - 5, 10, 10, 0, 360); 
37           if (getImag() != 0.0D) 
38               g.drawArc(k - 5, j - l - 5, 10, 10, 0, 360); 
39       } 
40   } 
41