C# Класс Scroller.ScrollingStrategyBase

Наследование: IScrollingStrategy, IHighlightableElement
Показать файл Открыть проект

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

Метод Описание
BeginHighlight ( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective ) : ScrollingDirective
ElementUnregistered ( HighlightModel element ) : void
EndHighlight ( EndScrollingInfo endScrollingInfo, ScrollingDirective scrollingDirective ) : ScrollingDirective
GoToElement ( HighlightModel element ) : void
MoveNext ( ActionType action ) : void

Move the cursor to the next element according to the given ActionType

OnExternalEvent ( ) : void
Pause ( bool forceEndHighlight ) : void
Resume ( ) : void
ScrollingStrategyBase ( ) : System
SelectElement ( ScrollingDirective scrollingDirective ) : ScrollingDirective
Setup ( DispatcherTimer timer, Func getElements, IPluginConfigAccessor config ) : void
Start ( ) : void
Stop ( ) : void

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

Метод Описание
ActiveAutoPause ( ) : void
CanMove ( ) : bool

Determine whether a move can be performed or not.

DeactiveAutoPause ( ) : void
FireBeginHighlight ( ) : void

Calls the BeginHighlight method of the current IHighlightableElement It also sets LastDirective to the ScrollingDirective object returned by the call to BeginHighlight.

FireEndHighlight ( IHighlightableElement previousElement, IHighlightableElement element ) : void

Calls the EndHighlight method of the current IHighlightableElement It also sets _lastDirective to the ScrollingDirective object returned by the call to EndHighlight.

FireSelectElement ( ) : void

Calls the SelectElement method of the current IHighlightableElement It also sets LastDirective to the ScrollingDirective object returned by the call to SelectElement.

OnConfigChanged ( object sender, CK.Plugin.Config.ConfigChangedEventArgs e ) : void
OnInternalBeat ( object sender, EventArgs e ) : void
ProcessSkipBehavior ( ActionType action ) : void

Read the the SkipBehavior of the current element and process it.

ResetAutoPause ( ) : void
UpdateAutoPauseTicks ( ActionType LastActionType ) : void
WarnNextAction ( ActionType action ) : ActionType

Allow IHighlightableElementController to change the given action used for the next move

Приватные методы

Метод Описание
CheckAutoPauseCondition ( ) : bool
EnsureReactivity ( ) : void

if the directive is to react instantly, we stop the timer, simulate a tick, and relaunch the timer.

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

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

protected ActiveAutoPause ( ) : void
Результат void

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

public BeginHighlight ( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective ) : ScrollingDirective
beginScrollingInfo HighlightModel.BeginScrollingInfo
scrollingDirective HighlightModel.ScrollingDirective
Результат HighlightModel.ScrollingDirective

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

Determine whether a move can be performed or not.
protected CanMove ( ) : bool
Результат bool

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

protected DeactiveAutoPause ( ) : void
Результат void

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

public ElementUnregistered ( HighlightModel element ) : void
element HighlightModel
Результат void

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

public EndHighlight ( EndScrollingInfo endScrollingInfo, ScrollingDirective scrollingDirective ) : ScrollingDirective
endScrollingInfo HighlightModel.EndScrollingInfo
scrollingDirective HighlightModel.ScrollingDirective
Результат HighlightModel.ScrollingDirective

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

Calls the BeginHighlight method of the current IHighlightableElement It also sets LastDirective to the ScrollingDirective object returned by the call to BeginHighlight.
protected FireBeginHighlight ( ) : void
Результат void

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

Calls the EndHighlight method of the current IHighlightableElement It also sets _lastDirective to the ScrollingDirective object returned by the call to EndHighlight.
protected FireEndHighlight ( IHighlightableElement previousElement, IHighlightableElement element ) : void
previousElement IHighlightableElement
element IHighlightableElement
Результат void

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

Calls the SelectElement method of the current IHighlightableElement It also sets LastDirective to the ScrollingDirective object returned by the call to SelectElement.
protected FireSelectElement ( ) : void
Результат void

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

public GoToElement ( HighlightModel element ) : void
element HighlightModel
Результат void

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

Move the cursor to the next element according to the given ActionType
public MoveNext ( ActionType action ) : void
action ActionType The ActionType that indicate the move direction
Результат void

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

protected OnConfigChanged ( object sender, CK.Plugin.Config.ConfigChangedEventArgs e ) : void
sender object
e CK.Plugin.Config.ConfigChangedEventArgs
Результат void

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

public OnExternalEvent ( ) : void
Результат void

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

protected OnInternalBeat ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

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

public Pause ( bool forceEndHighlight ) : void
forceEndHighlight bool
Результат void

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

Read the the SkipBehavior of the current element and process it.
protected ProcessSkipBehavior ( ActionType action ) : void
action ActionType
Результат void

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

protected ResetAutoPause ( ) : void
Результат void

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

public Resume ( ) : void
Результат void

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

public ScrollingStrategyBase ( ) : System
Результат System

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

public SelectElement ( ScrollingDirective scrollingDirective ) : ScrollingDirective
scrollingDirective HighlightModel.ScrollingDirective
Результат HighlightModel.ScrollingDirective

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

public Setup ( DispatcherTimer timer, Func getElements, IPluginConfigAccessor config ) : void
timer System.Windows.Threading.DispatcherTimer
getElements Func
config IPluginConfigAccessor
Результат void

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

public Start ( ) : void
Результат void

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

public Stop ( ) : void
Результат void

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

protected UpdateAutoPauseTicks ( ActionType LastActionType ) : void
LastActionType ActionType
Результат void

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

Allow IHighlightableElementController to change the given action used for the next move
protected WarnNextAction ( ActionType action ) : ActionType
action ActionType
Результат ActionType