C# Class SmoothStreamingPlayerApplication.LiveDataGraph

Inheritance: System.Windows.Controls.UserControl
Datei anzeigen Open project: NicePeopleAtWork/NicePlayers

Public Methods

Method Description
LiveDataGraph ( ) : System
SetTitle ( string title ) : void
SetYAxisBounds ( double min, double max ) : void
SetYLabels ( List yLabelsList ) : void

Upates the charts Y labels. The control will plot a horizontal line and a legend for each value in this list.

Update ( double newVal, System.DateTime t ) : void

Updates the chart data, This method should be called whenever the chart data source switches to a new value.

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size
MeasureOverride ( Size availableSize ) : Size

Private Methods

Method Description
LiveDataGraph_Loaded ( object sender, RoutedEventArgs e ) : void
LiveDataGraph_Unloaded ( object sender, RoutedEventArgs e ) : void
OnTimerTick ( object sender, EventArgs e ) : void
UpdateGraphBorders ( ) : void
UpdateGraphData ( double newVal, System.DateTime t ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

LiveDataGraph() public method

public LiveDataGraph ( ) : System
return System

MeasureOverride() protected method

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
return System.Windows.Size

SetTitle() public method

public SetTitle ( string title ) : void
title string
return void

SetYAxisBounds() public method

public SetYAxisBounds ( double min, double max ) : void
min double
max double
return void

SetYLabels() public method

Upates the charts Y labels. The control will plot a horizontal line and a legend for each value in this list.
public SetYLabels ( List yLabelsList ) : void
yLabelsList List
return void

Update() public method

Updates the chart data, This method should be called whenever the chart data source switches to a new value.
public Update ( double newVal, System.DateTime t ) : void
newVal double The new data value.
t System.DateTime Time stamp for when the data has changed.
return void