Method randomize
()
| 111 | * |
| 112 | */ |
| 113 | public void randomize() { |
| 114 | boolean isRunning = animationThread!=null; |
| 115 | stopAnimation(); |
| 116 | randomizeCells(); |
| 117 | if(isRunning) { |
| 118 | startAnimation(); |
| 119 | } else { |
| 120 | enData.clear(); |
| 121 | magData.clear(); |
| 122 | time_counter = 0; |
| 123 | drawingPanel.invalidateImage(); |
| 124 | drawingPanel.repaint(); |
| 125 | enPanel.repaint(); |
| 126 | magPanel.repaint(); |
| 127 | } |
| 128 | }; |
| 129 | |
| 130 | /** |
| 131 | * Custom randomizes the spins |
nothing calls this directly
no test coverage detected