C# Class Schementi.Controls.Sparkline

Interaction logic for Sparkline.xaml
Inheritance: System.Windows.Controls.ContentControl
Mostrar archivo Open project: jschementi/sparkline

Public Properties

Property Type Description
HighWaterMarkProperty System.Windows.DependencyProperty
LatestLevelProperty System.Windows.DependencyProperty
LineMarginProperty DependencyProperty
LowWaterMarkProperty DependencyProperty
MinYRangeProperty DependencyProperty
PointFillProperty DependencyProperty
PointRadiusProperty DependencyProperty
ShowLatestLevelProperty DependencyProperty
ShowWatermarksProperty DependencyProperty
StrokeThicknessProperty DependencyProperty
TimeSeriesProperty DependencyProperty

Public Methods

Method Description
AddTimeValue ( double value, System.DateTime time = null ) : string
OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnTimeValueAdded ( Point po, Panel pa, TimeValue timeValue ) : void

Private Methods

Method Description
AddPoint ( Point point ) : void
DrawDot ( Point center ) : System.Windows.Shapes.Path
DrawTimeValue ( TimeValue newTimeValue ) : void
GetPoint ( TimeValue timeValue ) : Point
InitializePolyline ( ) : void
OnShowLatestLevelPropertyChanged ( ) : void
OnShowLatestLevelPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnShowWatermarksPropertyChanged ( ) : void
OnShowWatermarksPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnTimeSeriesPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnTimeSeriesPropertyChanged ( DependencyPropertyChangedEventArgs e ) : void
ResetTimeSeries ( ) : void
SetCanvasHeight ( double y ) : void
SetContainerHeight ( double y ) : void
SetLatestLevel ( double y ) : void
SetWatermarks ( double y ) : void
Sparkline ( ) : System
TimeSeriesCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method Details

AddTimeValue() public method

public AddTimeValue ( double value, System.DateTime time = null ) : string
value double
time System.DateTime
return string

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnTimeValueAdded() protected method

protected OnTimeValueAdded ( Point po, Panel pa, TimeValue timeValue ) : void
po Point
pa Panel
timeValue TimeValue
return void

Property Details

HighWaterMarkProperty public_oe static_oe property

public static DependencyProperty,System.Windows HighWaterMarkProperty
return System.Windows.DependencyProperty

LatestLevelProperty public_oe static_oe property

public static DependencyProperty,System.Windows LatestLevelProperty
return System.Windows.DependencyProperty

LineMarginProperty public_oe static_oe property

public static DependencyProperty LineMarginProperty
return DependencyProperty

LowWaterMarkProperty public_oe static_oe property

public static DependencyProperty LowWaterMarkProperty
return DependencyProperty

MinYRangeProperty public_oe static_oe property

public static DependencyProperty MinYRangeProperty
return DependencyProperty

PointFillProperty public_oe static_oe property

public static DependencyProperty PointFillProperty
return DependencyProperty

PointRadiusProperty public_oe static_oe property

public static DependencyProperty PointRadiusProperty
return DependencyProperty

ShowLatestLevelProperty public_oe static_oe property

public static DependencyProperty ShowLatestLevelProperty
return DependencyProperty

ShowWatermarksProperty public_oe static_oe property

public static DependencyProperty ShowWatermarksProperty
return DependencyProperty

StrokeThicknessProperty public_oe static_oe property

public static DependencyProperty StrokeThicknessProperty
return DependencyProperty

TimeSeriesProperty public_oe static_oe property

public static DependencyProperty TimeSeriesProperty
return DependencyProperty