/Users/lyon/j4p/src/bookExamples/ch26Graphics/carl/logPolar/ResetRaysButton.java
|
1 package bookExamples.ch26Graphics.carl.logPolar;
2
3 import gui.run.RunButton;
4 import bookExamples.ch26Graphics.carl.logPolar.ColorArray;
5 import bookExamples.ch26Graphics.carl.logPolar.Controller;
6
7 class ResetRaysButton extends RunButton {
8 Controller main;
9
10 public ResetRaysButton(Controller main) {
11 super("Reset Rays");
12 this.main = main;
13 }
14
15 public void run() {
16 main.getLogic().setIOffset(0);
17 ColorArray cArray =
18 new ColorArray(main.getLogic().getRings(),
19 main.getLogic().getRays(),
20 main.getLogic().isRadially());
21 main.getLogic().getPanDisplay().repaint();
22 }
23 }
24