-
- public static void beforeRun(VisualisationObjects vis)
- {
- // TODO workaround for rendering bug
- AtomicReference<TimelineEventHandler> functionRef = new AtomicReference<>();
- LogicUICanvas logicUICanvas = vis.gui.getLogicUICanvas();
- TimelineEventHandler function = e ->
- {
- logicUICanvas.redrawThreadsafe();
- vis.timeline.addEvent(functionRef.get(), 50);
- };
- functionRef.set(function);
- vis.timeline.addEvent(function, 0);
- }