C# Class csShared.Timeline.TimelineManager

Inheritance: Caliburn.Micro.PropertyChangedBase, ITimelineManager
Mostrar archivo Open project: TNOCS/csTouch

Public Properties

Property Type Description
DefaultCustomStep System.TimeSpan

Public Methods

Method Description
Begin ( ) : void

Start the time line (so the focus time will move forward) in real-time.

Consider replacing this functionality with the player.

CalculateInterval ( ) : void
CenterTime ( System.DateTime t ) : void
CreatePlayerMenu ( ) : void

Create the circular menu for the player.

ForceTimeChanged ( ) : void

Every time change, you get an update.

ForceTimeContentChanged ( ) : void

Throttled time change.

GetRow ( string id ) : TimeRow
GetScreenPos ( System.DateTime dt ) : double
SetFocusTime ( System.DateTime now ) : void

Set the focus time.

Stop ( ) : void

Stop the time line (so the focus time will not move forward anymore).

TimelineManager ( ) : Caliburn.Micro

Private Methods

Method Description
ConvertStepToString ( System.TimeSpan step ) : string
CreateCustomStepMenu ( MenuItemEventArgs fe, bool error = false ) : void
GetMenuItemById ( string id ) : CircularMenuItem

Get the menu item by ID.

HighlightSelectedItem ( string speed, CircularMenuItem speedMenu ) : void
Menu_ItemSelected ( object sender, MenuItemEventArgs e ) : void

Handle a click on a player menu item.

OnFocusTimeChanged ( ) : void
OnTimeChanged ( ) : void
OnTimeContentChanged ( ) : void
PausePlaying ( ) : void
SetPlayEndTime ( ) : void
SetPlayEndTime ( System.DateTime time ) : void
SetPlaySpeed ( int speed ) : void

Set the player's speed, i.e. the multiplication factor that determines how many seconds pass every time the focus time is updated.

SetPlayStartTime ( ) : void
SetPlayStartTime ( System.DateTime time ) : void
SetStepSize ( string speed ) : void

Set the player's step size, i.e. the amount of time that the focus time is increased each tick.

StartPlaying ( ) : void
StopPlaying ( ) : void
UpdateFocusTime ( ) : void
UpdateTimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
player_Tick ( object sender, EventArgs e ) : void

Method Details

Begin() public method

Start the time line (so the focus time will move forward) in real-time.
Consider replacing this functionality with the player.
public Begin ( ) : void
return void

CalculateInterval() public method

public CalculateInterval ( ) : void
return void

CenterTime() public method

public CenterTime ( System.DateTime t ) : void
t System.DateTime
return void

CreatePlayerMenu() public method

Create the circular menu for the player.
public CreatePlayerMenu ( ) : void
return void

ForceTimeChanged() public method

Every time change, you get an update.
public ForceTimeChanged ( ) : void
return void

ForceTimeContentChanged() public method

Throttled time change.
public ForceTimeContentChanged ( ) : void
return void

GetRow() public method

public GetRow ( string id ) : TimeRow
id string
return csEvents.TimeRow

GetScreenPos() public method

public GetScreenPos ( System.DateTime dt ) : double
dt System.DateTime
return double

SetFocusTime() public method

Set the focus time.
public SetFocusTime ( System.DateTime now ) : void
now System.DateTime
return void

Stop() public method

Stop the time line (so the focus time will not move forward anymore).
public Stop ( ) : void
return void

TimelineManager() public method

public TimelineManager ( ) : Caliburn.Micro
return Caliburn.Micro

Property Details

DefaultCustomStep public_oe property

Default Step for custom time
public TimeSpan,System DefaultCustomStep
return System.TimeSpan