@Override public void start() { super.start(); running = true; startTime = -1; for (AnimationHandler animationHandler : animationHandlers) { animationHandler.init(); } for (CacheMemento cache : caches) { cache.cache(); } }
@Override public void stop() { super.stop(); running = false; for (AnimationHandler handler : animationHandlers) { handler.clear(); } for (CacheMemento cache : caches) { cache.restore(); } if (onFinished != null) { onFinished.run(); } }
/** * this method will pause the timer and reverse the animation if the timer already * started otherwise it will start the animation. */ public void reverseAndContinue() { if (isRunning()) { super.stop(); for (AnimationHandler handler : animationHandlers) { handler.reverse(totalElapsedMilliseconds); } startTime = -1; super.start(); } else { start(); } }
/** * this method will pause the timer and reverse the animation if the timer already * started otherwise it will start the animation. */ public void reverseAndContinue() { if (isRunning()) { super.stop(); for (AnimationHandler handler : animationHandlers) { handler.reverse(totalElapsedMilliseconds); } startTime = -1; super.start(); } else { start(); } }
public void applyEndValues() { if (isRunning()) { super.stop(); } for (AnimationHandler handler : animationHandlers) { handler.applyEndValues(); } startTime = -1; }
public void start() { renderMeshAnimation.start(); }
public void stop() { renderer.stop(); }
public void start() { animationTimer.start(); }
public void stop() { animationTimer.stop(); }
public void start() { renderer.start(); }
public void stop() { animationTimer.stop(); }
public void start() { animationTimer.start(); }
@Override public void stop() { super.stop(); if (!isExecutorServiceProvided) executorService.shutdownNow(); }
public void start() { animationTimer.start(); executorService.scheduleAtFixedRate(this::sendFootsteps, 0, 100, TimeUnit.MILLISECONDS); }
@Override public void stop() { super.stop(); if (!isExecutorServiceProvided) executorService.shutdownNow(); }
@Override public void start() { enabled.set(true); super.start(); }
@Override public void stop() { super.stop(); executorService.shutdownNow(); }
@Override public void start() { enabled.set(true); super.start(); }
@Override public void stop() { super.stop(); if (!isExecutorServiceProvided) executorService.shutdownNow(); }
public void start() { if (!meshBuilderScheduledFutures.isEmpty()) return; renderMeshAnimation.start(); meshBuilderScheduledFutures.add(executorService.scheduleAtFixedRate(lidarScanViewer, 0, HIGH_PACE_UPDATE_PERIOD, TimeUnit.MILLISECONDS)); meshBuilderScheduledFutures.add(executorService.scheduleAtFixedRate(bufferOctreeMeshBuilder, 0, HIGH_PACE_UPDATE_PERIOD, TimeUnit.MILLISECONDS)); meshBuilderScheduledFutures.add(executorService.scheduleAtFixedRate(ocTreeViewer, 0, SLOW_PACE_UPDATE_PERIOD, TimeUnit.MILLISECONDS)); meshBuilderScheduledFutures.add(executorService.scheduleAtFixedRate(planarRegionsMeshBuilder, 0, MEDIUM_PACE_UPDATE_PERIOD, TimeUnit.MILLISECONDS)); meshBuilderScheduledFutures.add(executorService.scheduleAtFixedRate(intersectionsMeshBuilder, 0, MEDIUM_PACE_UPDATE_PERIOD, TimeUnit.MILLISECONDS)); meshBuilderScheduledFutures.add(executorService.scheduleAtFixedRate(boundingBoxMeshView, 0, MEDIUM_PACE_UPDATE_PERIOD, TimeUnit.MILLISECONDS)); }