Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

::

interface XSprite

Methods' Summary
startAnimation Start animation sequence of this sprite. The speed of the animation is given in frames per second.
stopAnimation Stop the animation sequence. A subsequent startAnimation will commence the sequence at the point where it was stopped with stopAnimation.
resetAnimation Reset the animation sequence to start with the first frame. If the animation is currently running, the next frame that is drawn after this method has finished, will be the first one.
setTransparency Set overall transparency of the sprite. Useful for e.g. fading in/out of animations.
Methods' Details
startAnimation
void
startAnimation(
 
[in] double
 
speed );

Description
Start animation sequence of this sprite. The speed of the animation is given in frames per second.
stopAnimation
void
stopAnimation();
 
 

Description
Stop the animation sequence. A subsequent startAnimation will commence the sequence at the point where it was stopped with stopAnimation.
resetAnimation
void
resetAnimation();
 
 

Description
Reset the animation sequence to start with the first frame. If the animation is currently running, the next frame that is drawn after this method has finished, will be the first one.
setTransparency
void
setTransparency(
 
[in] double
 
alpha );

Description
Set overall transparency of the sprite. Useful for e.g. fading in/out of animations.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.