C# 클래스 Scroller.ScrollingStrategyBase

상속: IScrollingStrategy, IHighlightableElement
파일 보기 프로젝트 열기: Invenietis/ck-certified

공개 메소드들

메소드 설명
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