Scale Animation
class ScaleAnimation<T : ComponentView>( componentView: T, fromScaleX: Number = componentView.scaleX, toScaleX: Number = componentView.scaleX, fromScaleY: Number = componentView.scaleY, toScaleY: Number = componentView.scaleY, duration: Int = DEFAULT_ANIMATION_SPEED) : ComponentAnimation<T>
Content copied to clipboard
A scale Animation.
Sca,les given ComponentView to given scalar.
Parameters
T
Generic ComponentView.
component View
ComponentView to animate
from Scale X
Initial X position. Default: Current ComponentView.posX.
to Scale X
Resulting X position. Default: Current ComponentView.posX.
from Scale Y
Initial Y position. Default: Current ComponentView.posY.
to Scale Y
Resulting Y position. Default: Current ComponentView.posY.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.
Constructors
Link copied to clipboard
fun <T : ComponentView> ScaleAnimation( componentView: T, byScaleX: Number = 0.0, byScaleY: Number = 0.0, duration: Int = 1000)
Content copied to clipboard
A scale animation. Scales given ComponentView to given scalar.
Link copied to clipboard
fun <T : ComponentView> ScaleAnimation( componentView: T, byScale: Number = 0.0, duration: Int = 1000)
Content copied to clipboard
A scale animation. Scales given ComponentView to given scalar.
Link copied to clipboard
fun <T : ComponentView> ScaleAnimation( componentView: T, fromScaleX: Number = componentView.scaleX, toScaleX: Number = componentView.scaleX, fromScaleY: Number = componentView.scaleY, toScaleY: Number = componentView.scaleY, duration: Int = DEFAULT_ANIMATION_SPEED)
Content copied to clipboard
Creates a ScaleAnimation for the given ComponentView.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets invoked when Animation has finished.