public class DefaultAnimationService extends AbstractService implements AnimationService
Animations.| Constructor and Description |
|---|
DefaultAnimationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Animation |
getAnimation(ImageDisplay display)
Gets the given
ImageDisplay's corresponding Animation. |
EventService |
getEventService() |
void |
initialize() |
protected void |
onEvent(DataRestructuredEvent event)
Stops animation of displays whose
Data have been restructured. |
protected void |
onEvent(DisplayDeletedEvent event)
Stops animation if display has been deleted.
|
protected void |
onEvent(KyPressedEvent event)
Stops animation if ESC key is pressed.
|
void |
start(ImageDisplay display)
Starts animation for the given
ImageDisplay. |
void |
stop(ImageDisplay display)
Stops animation for the given
ImageDisplay. |
void |
stopAll()
Stops all animations.
|
void |
toggle(ImageDisplay display)
Toggles animation for the given
ImageDisplay. |
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic EventService getEventService()
getEventService in interface AnimationServicepublic void toggle(ImageDisplay display)
AnimationServiceImageDisplay.toggle in interface AnimationServicepublic void start(ImageDisplay display)
AnimationServiceImageDisplay.start in interface AnimationServicepublic void stop(ImageDisplay display)
AnimationServiceImageDisplay.stop in interface AnimationServicepublic void stopAll()
AnimationServicestopAll in interface AnimationServicepublic Animation getAnimation(ImageDisplay display)
AnimationServiceImageDisplay's corresponding Animation.getAnimation in interface AnimationServicepublic void initialize()
initialize in interface Initializableinitialize in interface Servicepublic void dispose()
dispose in interface Disposableprotected void onEvent(KyPressedEvent event)
protected void onEvent(DisplayDeletedEvent event)
protected void onEvent(DataRestructuredEvent event)
Data have been restructured.Copyright © 2014–2022 ImageJ. All rights reserved.