MCPcopy Create free account
hub / github.com/Kitware/VTK / setupGC

Method setupGC

Wrapping/Java/vtk/sample/Demo.java:184–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

SetScheduleTimeMethod · 0.80

Tested by

no test coverage detected