C# Class Scroller.StrategyBridge

Make the bridge between the different implementations
Inheritance: IScrollingStrategy
显示文件 Open project: Invenietis/ck-certified Class Usage Examples

Private Properties

Property Type Description
StrategyBridge System

Public Methods

Method Description
ElementUnregistered ( HighlightModel element ) : void
GetStrategyNames ( ) : IEnumerable

Get all the available strategy names

GetStrategyTypes ( ) : IEnumerable

Get the list of all types that implements IScrollingStrategy

GoToElement ( HighlightModel element ) : void
OnExternalEvent ( ) : void
Pause ( bool forceEndHighlight ) : void
Resume ( ) : void
Setup ( DispatcherTimer timer, Func getElements, IPluginConfigAccessor config ) : void
Start ( ) : void
Stop ( ) : void
StrategyBridge ( DispatcherTimer timer, Func getElements, IPluginConfigAccessor config ) : System
SwitchTo ( string strategyName ) : void

Switch to the specified strategy

Private Methods

Method Description
StrategyBridge ( ) : System

Method Details

ElementUnregistered() public method

public ElementUnregistered ( HighlightModel element ) : void
element HighlightModel
return void

GetStrategyNames() public static method

Get all the available strategy names
public static GetStrategyNames ( ) : IEnumerable
return IEnumerable

GetStrategyTypes() public static method

Get the list of all types that implements IScrollingStrategy
public static GetStrategyTypes ( ) : IEnumerable
return IEnumerable

GoToElement() public method

public GoToElement ( HighlightModel element ) : void
element HighlightModel
return void

OnExternalEvent() public method

public OnExternalEvent ( ) : void
return void

Pause() public method

public Pause ( bool forceEndHighlight ) : void
forceEndHighlight bool
return void

Resume() public method

public Resume ( ) : void
return void

Setup() public method

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

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

StrategyBridge() public method

public StrategyBridge ( DispatcherTimer timer, Func getElements, IPluginConfigAccessor config ) : System
timer System.Windows.Threading.DispatcherTimer
getElements Func
config IPluginConfigAccessor
return System

SwitchTo() public method

Switch to the specified strategy
public SwitchTo ( string strategyName ) : void
strategyName string The name of the strategy to switch to
return void