()
| 182 | } |
| 183 | |
| 184 | private void setupGC() { |
| 185 | // Setup GC to run every 1 second in EDT |
| 186 | vtkObject.JAVA_OBJECT_MANAGER.getAutoGarbageCollector().SetScheduleTime(1, TimeUnit.SECONDS); |
| 187 | |
| 188 | // Start/Stop the GC based on the checkbox |
| 189 | runGC.addActionListener(new ActionListener() { |
| 190 | public void actionPerformed(ActionEvent arg0) { |
| 191 | vtkObject.JAVA_OBJECT_MANAGER.getAutoGarbageCollector().SetAutoGarbageCollection(runGC.isSelected()); |
| 192 | } |
| 193 | }); |
| 194 | |
| 195 | // Change GC mode based on the checkbox |
| 196 | debugMode.addActionListener(new ActionListener() { |
| 197 | public void actionPerformed(ActionEvent arg0) { |
| 198 | vtkObject.JAVA_OBJECT_MANAGER.getAutoGarbageCollector().SetDebug(debugMode.isSelected()); |
| 199 | } |
| 200 | }); |
| 201 | } |
| 202 | |
| 203 | private void setupWorkers() { |
| 204 | // Add actor thread: Consume the working queue and add the actor into |
nothing calls this directly
no test coverage detected