public class OpacityAnimation extends TractionAnimation
Constructor and Description |
---|
OpacityAnimation(Element[] elm,
float fromOpacity,
float toOpacity)
Creates an OpacityAnimation
|
Modifier and Type | Method and Description |
---|---|
protected void |
onUpdate(double progress) |
void |
setPosition(double progress)
Sets the animation to a particular point, cancelling an
animation in progress.
|
void |
setPositionAtEnd()
Sets the animation to the end point, canceling any animation in
progress.
|
void |
setPositionAtStart()
Sets the animation to the starting point, canceling any
animation in progress.
|
public OpacityAnimation(Element[] elm, float fromOpacity, float toOpacity)
elm
- The Elements to modifyfromOpacity
- The opacity value at the start of the animation (0-1)toOpacity
- The opacity value at the end of the animation (0-1)public void setPositionAtStart()
setPositionAtStart
in class TractionAnimation
public void setPositionAtEnd()
setPositionAtEnd
in class TractionAnimation
public void setPosition(double progress)
setPosition
in class TractionAnimation
Copyright © 2015. All Rights Reserved.