C# Класс UMD.HCIL.Piccolo.Activities.PColorActivity

PColorActivity interpolates between two colors for its target over the duration of the animation.
The source color is retrieved from the target just before the activity is scheduled to start.
Наследование: UMD.HCIL.Piccolo.Activities.PInterpolatingActivity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
PColorActivity ( long duration, long stepInterval, Target aTarget ) : System

Constructs a new PColorActivity that will animate from the source color to no color, unless the destination color is later set.

PColorActivity ( long duration, long stepInterval, Target aTarget, Color aDestination ) : System

Constructs a new PColorActivity that will animate from the source color to the destination color.

PColorActivity ( long duration, long stepInterval, int loopCount, ActivityMode mode, Target aTarget, Color aDestination ) : System

Constructs a new PColorActivity that animate between the source and destination colors in the order specified by the mode, looping the given number of iterations.

SetRelativeTargetValue ( float zeroToOne ) : void

Overridden. See PInterpolatingActivity.SetRelativeTargetValue.

Защищенные методы

Метод Описание
OnActivityStarted ( ) : void

Overridden. See PInterpolatingActivity.OnActivityStarted.

Описание методов

OnActivityStarted() защищенный Метод

Overridden. See PInterpolatingActivity.OnActivityStarted.
protected OnActivityStarted ( ) : void
Результат void

PColorActivity() публичный Метод

Constructs a new PColorActivity that will animate from the source color to no color, unless the destination color is later set.
public PColorActivity ( long duration, long stepInterval, Target aTarget ) : System
duration long The length of one loop of the activity.
stepInterval long /// The minimum number of milliseconds that this activity should delay between /// steps. ///
aTarget Target /// The object that the activity will be applied to and where the source state /// will be taken from. ///
Результат System

PColorActivity() публичный Метод

Constructs a new PColorActivity that will animate from the source color to the destination color.
public PColorActivity ( long duration, long stepInterval, Target aTarget, Color aDestination ) : System
duration long The length of one loop of the activity.
stepInterval long /// The minimum number of milliseconds that this activity should delay between /// steps. ///
aTarget Target /// The object that the activity will be applied to and where the source state /// will be taken from. ///
aDestination Color The destination color state.
Результат System

PColorActivity() публичный Метод

Constructs a new PColorActivity that animate between the source and destination colors in the order specified by the mode, looping the given number of iterations.
public PColorActivity ( long duration, long stepInterval, int loopCount, ActivityMode mode, Target aTarget, Color aDestination ) : System
duration long The length of one loop of the activity.
stepInterval long /// The minimum number of milliseconds that this activity should delay between steps. ///
loopCount int /// The number of times the activity should reschedule itself. ///
mode ActivityMode /// Defines how the activity interpolates between states. ///
aTarget Target /// The object that the activity will be applied to and where the source state /// will be taken from. ///
aDestination Color The destination color state.
Результат System

SetRelativeTargetValue() публичный Метод

Overridden. See PInterpolatingActivity.SetRelativeTargetValue.
public SetRelativeTargetValue ( float zeroToOne ) : void
zeroToOne float
Результат void