C# Class NetworkVis.Tween

Inheritance: System.Windows.Media.Animation.DoubleAnimationBase
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Properties

Property Type Description
EquationProperty System.Windows.DependencyProperty
FromProperty System.Windows.DependencyProperty
ToProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
HandleEquationChanged void

Public Methods

Method Description
BackEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.

BackEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.

BackEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity.

BackEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration.

BounceEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.

BounceEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.

BounceEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.

BounceEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out/in: deceleration until halfway, then acceleration.

CircEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a circular (sqrt(1-t^2)) easing in: accelerating from zero velocity.

CircEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.

CircEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a circular (sqrt(1-t^2)) easing out: decelerating from zero velocity.

CircEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.

CubicEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a cubic (t^3) easing in: accelerating from zero velocity.

CubicEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a cubic (t^3) easing in/out: acceleration until halfway, then deceleration.

CubicEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a cubic (t^3) easing out: decelerating from zero velocity.

CubicEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a cubic (t^3) easing out/in: deceleration until halfway, then acceleration.

ElasticEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity.

ElasticEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for an elastic (exponentially decaying sine wave) easing in/out: acceleration until halfway, then deceleration.

ElasticEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity.

ElasticEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for an elastic (exponentially decaying sine wave) easing out/in: deceleration until halfway, then acceleration.

ExpoEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for an exponential (2^t) easing in: accelerating from zero velocity.

ExpoEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for an exponential (2^t) easing in/out: acceleration until halfway, then deceleration.

ExpoEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for an exponential (2^t) easing out: decelerating from zero velocity.

ExpoEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for an exponential (2^t) easing out/in: deceleration until halfway, then acceleration.

Linear ( double t, double b, double c, double d ) : double

Easing equation function for a simple linear tweening, with no easing.

QuadEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity.

QuadEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration.

QuadEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a quadratic (t^2) easing out: decelerating from zero velocity.

QuadEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a quadratic (t^2) easing out/in: deceleration until halfway, then acceleration.

QuartEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a quartic (t^4) easing in: accelerating from zero velocity.

QuartEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a quartic (t^4) easing in/out: acceleration until halfway, then deceleration.

QuartEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a quartic (t^4) easing out: decelerating from zero velocity.

QuartEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a quartic (t^4) easing out/in: deceleration until halfway, then acceleration.

QuintEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a quintic (t^5) easing in: accelerating from zero velocity.

QuintEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.

QuintEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a quintic (t^5) easing out: decelerating from zero velocity.

QuintEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.

SineEaseIn ( double t, double b, double c, double d ) : double

Easing equation function for a sinusoidal (sin(t)) easing in: accelerating from zero velocity.

SineEaseInOut ( double t, double b, double c, double d ) : double

Easing equation function for a sinusoidal (sin(t)) easing in/out: acceleration until halfway, then deceleration.

SineEaseOut ( double t, double b, double c, double d ) : double

Easing equation function for a sinusoidal (sin(t)) easing out: decelerating from zero velocity.

SineEaseOutIn ( double t, double b, double c, double d ) : double

Easing equation function for a sinusoidal (sin(t)) easing in/out: deceleration until halfway, then acceleration.

Tween ( ) : System
Tween ( Equations type, double from, double to ) : System
Tween ( Equations type, double from, double to, Duration duration ) : System

Protected Methods

Method Description
CreateInstanceCore ( ) : System.Windows.Freezable
GetCurrentValueCore ( double startValue, double targetValue, System.Windows.Media.Animation.AnimationClock clock ) : double

Private Methods

Method Description
HandleEquationChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

BackEaseIn() public static method

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.
public static BackEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

BackEaseInOut() public static method

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.
public static BackEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

BackEaseOut() public static method

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity.
public static BackEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

BackEaseOutIn() public static method

Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration.
public static BackEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

BounceEaseIn() public static method

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
public static BounceEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

BounceEaseInOut() public static method

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
public static BounceEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

BounceEaseOut() public static method

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
public static BounceEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

BounceEaseOutIn() public static method

Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out/in: deceleration until halfway, then acceleration.
public static BounceEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CircEaseIn() public static method

Easing equation function for a circular (sqrt(1-t^2)) easing in: accelerating from zero velocity.
public static CircEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CircEaseInOut() public static method

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.
public static CircEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CircEaseOut() public static method

Easing equation function for a circular (sqrt(1-t^2)) easing out: decelerating from zero velocity.
public static CircEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CircEaseOutIn() public static method

Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration.
public static CircEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CreateInstanceCore() protected method

protected CreateInstanceCore ( ) : System.Windows.Freezable
return System.Windows.Freezable

CubicEaseIn() public static method

Easing equation function for a cubic (t^3) easing in: accelerating from zero velocity.
public static CubicEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CubicEaseInOut() public static method

Easing equation function for a cubic (t^3) easing in/out: acceleration until halfway, then deceleration.
public static CubicEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CubicEaseOut() public static method

Easing equation function for a cubic (t^3) easing out: decelerating from zero velocity.
public static CubicEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

CubicEaseOutIn() public static method

Easing equation function for a cubic (t^3) easing out/in: deceleration until halfway, then acceleration.
public static CubicEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ElasticEaseIn() public static method

Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity.
public static ElasticEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ElasticEaseInOut() public static method

Easing equation function for an elastic (exponentially decaying sine wave) easing in/out: acceleration until halfway, then deceleration.
public static ElasticEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ElasticEaseOut() public static method

Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity.
public static ElasticEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ElasticEaseOutIn() public static method

Easing equation function for an elastic (exponentially decaying sine wave) easing out/in: deceleration until halfway, then acceleration.
public static ElasticEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ExpoEaseIn() public static method

Easing equation function for an exponential (2^t) easing in: accelerating from zero velocity.
public static ExpoEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ExpoEaseInOut() public static method

Easing equation function for an exponential (2^t) easing in/out: acceleration until halfway, then deceleration.
public static ExpoEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ExpoEaseOut() public static method

Easing equation function for an exponential (2^t) easing out: decelerating from zero velocity.
public static ExpoEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

ExpoEaseOutIn() public static method

Easing equation function for an exponential (2^t) easing out/in: deceleration until halfway, then acceleration.
public static ExpoEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

GetCurrentValueCore() protected method

protected GetCurrentValueCore ( double startValue, double targetValue, System.Windows.Media.Animation.AnimationClock clock ) : double
startValue double
targetValue double
clock System.Windows.Media.Animation.AnimationClock
return double

Linear() public static method

Easing equation function for a simple linear tweening, with no easing.
public static Linear ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuadEaseIn() public static method

Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity.
public static QuadEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuadEaseInOut() public static method

Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration.
public static QuadEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuadEaseOut() public static method

Easing equation function for a quadratic (t^2) easing out: decelerating from zero velocity.
public static QuadEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuadEaseOutIn() public static method

Easing equation function for a quadratic (t^2) easing out/in: deceleration until halfway, then acceleration.
public static QuadEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuartEaseIn() public static method

Easing equation function for a quartic (t^4) easing in: accelerating from zero velocity.
public static QuartEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuartEaseInOut() public static method

Easing equation function for a quartic (t^4) easing in/out: acceleration until halfway, then deceleration.
public static QuartEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuartEaseOut() public static method

Easing equation function for a quartic (t^4) easing out: decelerating from zero velocity.
public static QuartEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuartEaseOutIn() public static method

Easing equation function for a quartic (t^4) easing out/in: deceleration until halfway, then acceleration.
public static QuartEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuintEaseIn() public static method

Easing equation function for a quintic (t^5) easing in: accelerating from zero velocity.
public static QuintEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuintEaseInOut() public static method

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.
public static QuintEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuintEaseOut() public static method

Easing equation function for a quintic (t^5) easing out: decelerating from zero velocity.
public static QuintEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

QuintEaseOutIn() public static method

Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration.
public static QuintEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

SineEaseIn() public static method

Easing equation function for a sinusoidal (sin(t)) easing in: accelerating from zero velocity.
public static SineEaseIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

SineEaseInOut() public static method

Easing equation function for a sinusoidal (sin(t)) easing in/out: acceleration until halfway, then deceleration.
public static SineEaseInOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

SineEaseOut() public static method

Easing equation function for a sinusoidal (sin(t)) easing out: decelerating from zero velocity.
public static SineEaseOut ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

SineEaseOutIn() public static method

Easing equation function for a sinusoidal (sin(t)) easing in/out: deceleration until halfway, then acceleration.
public static SineEaseOutIn ( double t, double b, double c, double d ) : double
t double Current time in seconds.
b double Starting value.
c double Final value.
d double Duration of animation.
return double

Tween() public method

public Tween ( ) : System
return System

Tween() public method

public Tween ( Equations type, double from, double to ) : System
type Equations
from double
to double
return System

Tween() public method

public Tween ( Equations type, double from, double to, Duration duration ) : System
type Equations
from double
to double
duration Duration
return System

Property Details

EquationProperty public static property

public static DependencyProperty,System.Windows EquationProperty
return System.Windows.DependencyProperty

FromProperty public static property

public static DependencyProperty,System.Windows FromProperty
return System.Windows.DependencyProperty

ToProperty public static property

public static DependencyProperty,System.Windows ToProperty
return System.Windows.DependencyProperty