C# Class WpfCharts.SpiderChartPanel

Inheritance: System.Windows.Controls.Panel
ファイルを表示 Open project: TNOCS/csTouch Class Usage Examples

Public Properties

Property Type Description
BackgroundColorProperty System.Windows.DependencyProperty
HoleRadiusProperty System.Windows.DependencyProperty
IsInteractiveProperty System.Windows.DependencyProperty
LinesProperty System.Windows.DependencyProperty
MaximumProperty System.Windows.DependencyProperty
MinimumProperty System.Windows.DependencyProperty
TicksProperty System.Windows.DependencyProperty
ValuesChangedEvent System.Windows.RoutedEvent

Public Methods

Method Description
SpiderChartPanel ( ) : System

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Arrange all children based on the geometric equations for the circle.

MeasureOverride ( Size availableSize ) : Size
OnBackgroundColorChanged ( Color oldBackgroundColor, Color newBackgroundColor ) : void

Provides derived classes an opportunity to handle changes to the BackgroundColor property.

OnHoleRadiusChanged ( double oldHoleRadius, double newHoleRadius ) : void

Provides derived classes an opportunity to handle changes to the HoleRadius property.

OnIsInteractiveChanged ( bool oldIsInteractive, bool newIsInteractive ) : void

Provides derived classes an opportunity to handle changes to the IsInteractive property.

OnLinesChanged ( IEnumerable oldLines, IEnumerable newLines ) : void

Provides derived classes an opportunity to handle changes to the Lines property.

OnMaximumChanged ( double oldMaximum, double newMaximum ) : void

Provides derived classes an opportunity to handle changes to the Maximum property.

OnMinimumChanged ( double oldMinimum, double newMinimum ) : void

Provides derived classes an opportunity to handle changes to the Minimum property.

OnRender ( System.Windows.Media.DrawingContext dc ) : void
OnTicksChanged ( double oldTicks, double newTicks ) : void

Provides derived classes an opportunity to handle changes to the Ticks property.

RaiseValuesChangedEvent ( string arg, List arg2 ) : ValuesChangedEventArgs

A helper method to raise the ValuesChanged event.

Private Methods

Method Description
ComputeNewValue ( Point position, int nearestIndexOnLine ) : void
DeviceOnUpdated ( object sender, EventArgs e ) : void
Distance ( Point pt1, Point pt2 ) : double

Computes the Euclidean distance between pt1 and pt2

DrawBackground ( System.Windows.Media.DrawingContext dc ) : void

Draw background (with hole)

GetPoint ( Point center, double radius, double angle ) : Point
LinesCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
OnBackgroundColorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the BackgroundColor property.

OnHoleRadiusChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the HoleRadius property.

OnIsInteractiveChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsInteractive property.

OnLinesChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Lines property.

OnMaximumChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Maximum property.

OnMinimumChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Minimum property.

OnMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
OnTicksChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Ticks property.

RaiseValuesChangedEvent ( DependencyObject target, string name, List values ) : ValuesChangedEventArgs

A static helper method to raise the ValuesChanged event on a target element.

Method Details

ArrangeOverride() protected method

Arrange all children based on the geometric equations for the circle.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

MeasureOverride() protected method

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

OnBackgroundColorChanged() protected method

Provides derived classes an opportunity to handle changes to the BackgroundColor property.
protected OnBackgroundColorChanged ( Color oldBackgroundColor, Color newBackgroundColor ) : void
oldBackgroundColor Color
newBackgroundColor Color
return void

OnHoleRadiusChanged() protected method

Provides derived classes an opportunity to handle changes to the HoleRadius property.
protected OnHoleRadiusChanged ( double oldHoleRadius, double newHoleRadius ) : void
oldHoleRadius double
newHoleRadius double
return void

OnIsInteractiveChanged() protected method

Provides derived classes an opportunity to handle changes to the IsInteractive property.
protected OnIsInteractiveChanged ( bool oldIsInteractive, bool newIsInteractive ) : void
oldIsInteractive bool
newIsInteractive bool
return void

OnLinesChanged() protected method

Provides derived classes an opportunity to handle changes to the Lines property.
protected OnLinesChanged ( IEnumerable oldLines, IEnumerable newLines ) : void
oldLines IEnumerable
newLines IEnumerable
return void

OnMaximumChanged() protected method

Provides derived classes an opportunity to handle changes to the Maximum property.
protected OnMaximumChanged ( double oldMaximum, double newMaximum ) : void
oldMaximum double
newMaximum double
return void

OnMinimumChanged() protected method

Provides derived classes an opportunity to handle changes to the Minimum property.
protected OnMinimumChanged ( double oldMinimum, double newMinimum ) : void
oldMinimum double
newMinimum double
return void

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext dc ) : void
dc System.Windows.Media.DrawingContext
return void

OnTicksChanged() protected method

Provides derived classes an opportunity to handle changes to the Ticks property.
protected OnTicksChanged ( double oldTicks, double newTicks ) : void
oldTicks double
newTicks double
return void

RaiseValuesChangedEvent() protected method

A helper method to raise the ValuesChanged event.
protected RaiseValuesChangedEvent ( string arg, List arg2 ) : ValuesChangedEventArgs
arg string
arg2 List
return ValuesChangedEventArgs

SpiderChartPanel() public method

public SpiderChartPanel ( ) : System
return System

Property Details

BackgroundColorProperty public_oe static_oe property

BackgroundColor Dependency Property
public static DependencyProperty,System.Windows BackgroundColorProperty
return System.Windows.DependencyProperty

HoleRadiusProperty public_oe static_oe property

HoleRadius Dependency Property
public static DependencyProperty,System.Windows HoleRadiusProperty
return System.Windows.DependencyProperty

IsInteractiveProperty public_oe static_oe property

IsInteractive Dependency Property
public static DependencyProperty,System.Windows IsInteractiveProperty
return System.Windows.DependencyProperty

LinesProperty public_oe static_oe property

Lines Dependency Property (acts as a kind of ItemsSource, triggering a redraw when the collection is changed)
public static DependencyProperty,System.Windows LinesProperty
return System.Windows.DependencyProperty

MaximumProperty public_oe static_oe property

Maximum Dependency Property
public static DependencyProperty,System.Windows MaximumProperty
return System.Windows.DependencyProperty

MinimumProperty public_oe static_oe property

Minimum Dependency Property
public static DependencyProperty,System.Windows MinimumProperty
return System.Windows.DependencyProperty

TicksProperty public_oe static_oe property

Ticks Dependency Property
public static DependencyProperty,System.Windows TicksProperty
return System.Windows.DependencyProperty

ValuesChangedEvent public_oe static_oe property

ValuesChanged Routed Event
public static RoutedEvent,System.Windows ValuesChangedEvent
return System.Windows.RoutedEvent