C# Class Scroller.ScrollingStrategyBase

Inheritance: IScrollingStrategy, IHighlightableElement
Afficher le fichier Open project: Invenietis/ck-certified

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
CheckAutoPauseCondition ( ) : bool
EnsureReactivity ( ) : void

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

Method Details

ActiveAutoPause() protected méthode

protected ActiveAutoPause ( ) : void
Résultat void

BeginHighlight() public méthode

public BeginHighlight ( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective ) : ScrollingDirective
beginScrollingInfo HighlightModel.BeginScrollingInfo
scrollingDirective HighlightModel.ScrollingDirective
Résultat HighlightModel.ScrollingDirective

CanMove() protected méthode

Determine whether a move can be performed or not.
protected CanMove ( ) : bool
Résultat bool

DeactiveAutoPause() protected méthode

protected DeactiveAutoPause ( ) : void
Résultat void

ElementUnregistered() public méthode

public ElementUnregistered ( HighlightModel element ) : void
element HighlightModel
Résultat void

EndHighlight() public méthode

public EndHighlight ( EndScrollingInfo endScrollingInfo, ScrollingDirective scrollingDirective ) : ScrollingDirective
endScrollingInfo HighlightModel.EndScrollingInfo
scrollingDirective HighlightModel.ScrollingDirective
Résultat HighlightModel.ScrollingDirective

FireBeginHighlight() protected méthode

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
Résultat void

FireEndHighlight() protected méthode

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
Résultat void

FireSelectElement() protected méthode

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
Résultat void

GoToElement() public méthode

public GoToElement ( HighlightModel element ) : void
element HighlightModel
Résultat void

MoveNext() public méthode

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
Résultat void

OnConfigChanged() protected méthode

protected OnConfigChanged ( object sender, CK.Plugin.Config.ConfigChangedEventArgs e ) : void
sender object
e CK.Plugin.Config.ConfigChangedEventArgs
Résultat void

OnExternalEvent() public méthode

public OnExternalEvent ( ) : void
Résultat void

OnInternalBeat() protected méthode

protected OnInternalBeat ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Pause() public méthode

public Pause ( bool forceEndHighlight ) : void
forceEndHighlight bool
Résultat void

ProcessSkipBehavior() protected méthode

Read the the SkipBehavior of the current element and process it.
protected ProcessSkipBehavior ( ActionType action ) : void
action ActionType
Résultat void

ResetAutoPause() protected méthode

protected ResetAutoPause ( ) : void
Résultat void

Resume() public méthode

public Resume ( ) : void
Résultat void

ScrollingStrategyBase() public méthode

public ScrollingStrategyBase ( ) : System
Résultat System

SelectElement() public méthode

public SelectElement ( ScrollingDirective scrollingDirective ) : ScrollingDirective
scrollingDirective HighlightModel.ScrollingDirective
Résultat HighlightModel.ScrollingDirective

Setup() public méthode

public Setup ( DispatcherTimer timer, Func getElements, IPluginConfigAccessor config ) : void
timer System.Windows.Threading.DispatcherTimer
getElements Func
config IPluginConfigAccessor
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

UpdateAutoPauseTicks() protected méthode

protected UpdateAutoPauseTicks ( ActionType LastActionType ) : void
LastActionType ActionType
Résultat void

WarnNextAction() protected méthode

Allow IHighlightableElementController to change the given action used for the next move
protected WarnNextAction ( ActionType action ) : ActionType
action ActionType
Résultat ActionType