/Users/lyon/j4p/src/bookExamples/ch26Graphics/carl/logPolar/RingRaysButton.java

1    package bookExamples.ch26Graphics.carl.logPolar; 
2     
3    import gui.run.RunButton; 
4    import bookExamples.ch26Graphics.carl.logPolar.Controller; 
5     
6     
7    class RingRaysButton extends RunButton { 
8        private Controller main; 
9     
10       public RingRaysButton(Controller main) { 
11           super("Rings, Rays:"); 
12           this.main = main; 
13       } 
14    
15       public void run() { 
16           main.newArray(main.getLogic().getRings(), 
17                   main.getLogic().getRays(), main.getLogic().isRadially()); 
18           main.getLogic().getPanDisplay().repaint(); 
19       } 
20   } 
21