Class AnimationValueIntCalculator
Provides integer value animation calculations with smooth interpolation between start and end values.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class AnimationValueIntCalculator : AnimationValueCalculator
Constructors
AnimationValueIntCalculator()
Declaration
public AnimationValueIntCalculator()
Properties
AssociatedType
Gets the type associated with this calculator.
Declaration
public override Type AssociatedType { get; }
Property Value
System.Type
The System.Int32 type. |
Overrides
Methods
CalculateAnimatedValue(Object, Object, Object, Object, Int32, Int32, EasingCalculator)
Calculates the animated integer value for the current frame.
Declaration
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters
System.Object
startValue
The starting integer value. |
System.Object
endValue
The ending integer value. |
System.Object
currValue
The current integer value. |
System.Object
step
The animation step value. |
System.Int32
currFrameNum
The current frame number. |
System.Int32
totalFrameNum
The total number of frames. |
EasingCalculator
calc
The easing calculator. |
Returns
System.Object
The calculated integer value for the current frame. |
Overrides
CalculateAnimationEndValue(Object, Object, Int32)
Calculates the end integer value based on start value and animation step.
Declaration
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)
Parameters
System.Object
animationStartValue
The starting integer value. |
System.Object
animationStep
The integer animation step. |
System.Int32
numFrames
The number of animation frames. |
Returns
System.Object
The calculated end integer value. |
Overrides
CalculateAnimationStep(Object, Object, Int32)
Calculates the animation step needed to transition between two integer values.
Declaration
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters
System.Object
animationStartValue
The starting integer value. |
System.Object
animationEndValue
The ending integer value. |
System.Int32
numFrames
The number of animation frames. |
Returns
System.Object
The calculated integer animation step. |
Overrides
CalculateInversedStep(Object)
Calculates the inverse of an integer animation step.
Declaration
public override object CalculateInversedStep(object step)
Parameters
System.Object
step
The integer step to invert. |
Returns
System.Object
The inverted integer step. |