Class AnimationValueCalculator
Calculates values used in each frame of property animation. Also supports converting animation step values to and from a string for theme serialization.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public abstract class AnimationValueCalculator
Constructors
AnimationValueCalculator()
Declaration
protected AnimationValueCalculator()
Properties
AssociatedType
Declaration
public abstract Type AssociatedType { get; }
Property Value
System.Type
|
Methods
CalculateAnimatedValue(Object, Object, Object, Object, Int32, Int32, EasingCalculator)
Calculates the animated value from start value, end value, current value, current frame, total number of frames and the specified animation calulator.
Declaration
public abstract object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters
System.Object
startValue
|
System.Object
endValue
|
System.Object
currValue
|
System.Object
step
|
System.Int32
currFrameNum
|
System.Int32
totalFrameNum
|
EasingCalculator
calc
|
Returns
System.Object
|
CalculateAnimationEndValue(Object, Object, Int32)
Calculates the animation end value from start value, step, and the total number of frames.
Declaration
public abstract object CalculateAnimationEndValue(object animationStartValue, object step, int numFrames)
Parameters
System.Object
animationStartValue
|
System.Object
step
|
System.Int32
numFrames
|
Returns
System.Object
|
CalculateAnimationStep(Object, Object, Int32)
Calculates the animation step from start value, end value, and the total number of frames.
Declaration
public abstract object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters
System.Object
animationStartValue
|
System.Object
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Object
|
CalculateDoubleEndValue(Double, Double, Int32)
Declaration
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames)
Parameters
System.Double
animationStartValue
|
System.Double
animationStep
|
System.Int32
numFrames
|
Returns
System.Double
|
CalculateDoubleEndValue(Double, Double, Int32, Double, Double)
Declaration
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames, double minValue, double maxValue)
Parameters
System.Double
animationStartValue
|
System.Double
animationStep
|
System.Int32
numFrames
|
System.Double
minValue
|
System.Double
maxValue
|
Returns
System.Double
|
CalculateDoubleStep(Double, Double, Double, Double, Double)
Declaration
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, double numFrames, double minValue, double maxValue)
Parameters
System.Double
animationStartValue
|
System.Double
animationEndValue
|
System.Double
numFrames
|
System.Double
minValue
|
System.Double
maxValue
|
Returns
System.Double
|
CalculateDoubleStep(Double, Double, Int32)
Declaration
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, int numFrames)
Parameters
System.Double
animationStartValue
|
System.Double
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Double
|
CalculateFloatEndValue(Single, Single, Int32)
Declaration
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames)
Parameters
System.Single
animationStartValue
|
System.Single
animationStep
|
System.Int32
numFrames
|
Returns
System.Single
|
CalculateFloatEndValue(Single, Single, Int32, Single, Single)
Declaration
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames, float minValue, float maxValue)
Parameters
System.Single
animationStartValue
|
System.Single
animationStep
|
System.Int32
numFrames
|
System.Single
minValue
|
System.Single
maxValue
|
Returns
System.Single
|
CalculateFloatStep(Single, Single, Int32)
Declaration
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, int numFrames)
Parameters
System.Single
animationStartValue
|
System.Single
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Single
|
CalculateFloatStep(Single, Single, Single, Single, Single)
Declaration
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, float numFrames, float minValue, float maxValue)
Parameters
System.Single
animationStartValue
|
System.Single
animationEndValue
|
System.Single
numFrames
|
System.Single
minValue
|
System.Single
maxValue
|
Returns
System.Single
|
CalculateIntEndValue(Int32, Int32, Int32)
Declaration
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationStep
|
System.Int32
numFrames
|
Returns
System.Int32
|
CalculateIntEndValue(Int32, Int32, Int32, Int32, Int32)
Declaration
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames, int minValue, int maxValue)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationStep
|
System.Int32
numFrames
|
System.Int32
minValue
|
System.Int32
maxValue
|
Returns
System.Int32
|
CalculateIntStep(Int32, Int32, Int32)
Declaration
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Int32
|
CalculateIntStep(Int32, Int32, Int32, Int32, Int32)
Declaration
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames, int minValue, int maxValue)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationEndValue
|
System.Int32
numFrames
|
System.Int32
minValue
|
System.Int32
maxValue
|
Returns
System.Int32
|
CalculateInversedStep(Object)
Declaration
public abstract object CalculateInversedStep(object step)
Parameters
System.Object
step
|
Returns
System.Object
|
ConvertAnimationStepToString(Object)
Retrieves the animation step as a string value.
Declaration
public virtual string ConvertAnimationStepToString(object value)
Parameters
System.Object
value
|
Returns
System.String
|
ConvertToAnimationStepFromString(String)
Converts a string to an animation value.
Declaration
public virtual object ConvertToAnimationStepFromString(string value)
Parameters
System.String
value
|
Returns
System.Object
|