Class
AnimationValueIntCalculator

Provides integer value animation calculations with smooth interpolation between start and end values.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class AnimationValueIntCalculator : AnimationValueCalculator

Inheritance: objectAnimationValueCalculatorAnimationValueIntCalculator

Inherited Members AnimationValueCalculator.ConvertAnimationStepToString(object)AnimationValueCalculator.ConvertToAnimationStepFromString(string)AnimationValueCalculator.CalculateIntStep(int, int, int)AnimationValueCalculator.CalculateIntStep(int, int, int, int, int)AnimationValueCalculator.CalculateFloatStep(float, float, int)AnimationValueCalculator.CalculateFloatStep(float, float, float, float, float)AnimationValueCalculator.CalculateDoubleStep(double, double, int)AnimationValueCalculator.CalculateDoubleStep(double, double, double, double, double)AnimationValueCalculator.CalculateFloatEndValue(float, float, int)AnimationValueCalculator.CalculateFloatEndValue(float, float, int, float, float)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int, double, double)AnimationValueCalculator.CalculateIntEndValue(int, int, int)AnimationValueCalculator.CalculateIntEndValue(int, int, int, int, int)

Constructors

AnimationValueIntCalculator()

Declaration

cs-api-definition
public AnimationValueIntCalculator()

Properties

AssociatedType

Gets the type associated with this calculator.

Declaration

cs-api-definition
public override Type AssociatedType { get; }

Property Value

Type

The int type.

Overrides AnimationValueCalculator.AssociatedType

Methods

CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

Calculates the animated integer value for the current frame.

Declaration

cs-api-definition
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)

Parameters

startValue

object

The starting integer value.

endValue

object

The ending integer value.

currValue

object

The current integer value.

step

object

The animation step value.

currFrameNum

int

The current frame number.

totalFrameNum

int

The total number of frames.

calc

EasingCalculator

The easing calculator.

Returns

object

The calculated integer value for the current frame.

Overrides AnimationValueCalculator.CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

CalculateAnimationEndValue(object, object, int)

Calculates the end integer value based on start value and animation step.

Declaration

cs-api-definition
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)

Parameters

animationStartValue

object

The starting integer value.

animationStep

object

The integer animation step.

numFrames

int

The number of animation frames.

Returns

object

The calculated end integer value.

Overrides AnimationValueCalculator.CalculateAnimationEndValue(object, object, int)

CalculateAnimationStep(object, object, int)

Calculates the animation step needed to transition between two integer values.

Declaration

cs-api-definition
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)

Parameters

animationStartValue

object

The starting integer value.

animationEndValue

object

The ending integer value.

numFrames

int

The number of animation frames.

Returns

object

The calculated integer animation step.

Overrides AnimationValueCalculator.CalculateAnimationStep(object, object, int)

CalculateInversedStep(object)

Calculates the inverse of an integer animation step.

Declaration

cs-api-definition
public override object CalculateInversedStep(object step)

Parameters

step

object

The integer step to invert.

Returns

object

The inverted integer step.

Overrides AnimationValueCalculator.CalculateInversedStep(object)