public class DefaultAnimationService extends AbstractService implements AnimationService
Animation
s.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, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public EventService getEventService()
getEventService
in interface AnimationService
public void toggle(ImageDisplay display)
AnimationService
ImageDisplay
.toggle
in interface AnimationService
public void start(ImageDisplay display)
AnimationService
ImageDisplay
.start
in interface AnimationService
public void stop(ImageDisplay display)
AnimationService
ImageDisplay
.stop
in interface AnimationService
public void stopAll()
AnimationService
stopAll
in interface AnimationService
public Animation getAnimation(ImageDisplay display)
AnimationService
ImageDisplay
's corresponding Animation
.getAnimation
in interface AnimationService
public void initialize()
initialize
in interface Initializable
initialize
in interface Service
public void dispose()
dispose
in interface Disposable
protected 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.