C# Class LiveCharts.Wpf.Charts.Base.Chart

ファイルを表示 Open project: beto-rodriguez/Live-Charts

Public Properties

Property Type Description
AnimationsSpeedProperty System.Windows.DependencyProperty
AxisXProperty System.Windows.DependencyProperty
AxisYProperty System.Windows.DependencyProperty
ChartLegendProperty System.Windows.DependencyProperty
DataTooltipProperty System.Windows.DependencyProperty
DisableAnimationsProperty System.Windows.DependencyProperty
HoverableProperty System.Windows.DependencyProperty
LegendLocationProperty System.Windows.DependencyProperty
ScrollBarFillProperty System.Windows.DependencyProperty
ScrollHorizontalFromProperty System.Windows.DependencyProperty
ScrollHorizontalToProperty System.Windows.DependencyProperty
ScrollModeProperty System.Windows.DependencyProperty
ScrollVerticalFromProperty System.Windows.DependencyProperty
ScrollVerticalToProperty System.Windows.DependencyProperty
SeriesColorsProperty System.Windows.DependencyProperty
SeriesProperty System.Windows.DependencyProperty
TooltipTimeoutProperty System.Windows.DependencyProperty
UpdaterStateProperty System.Windows.DependencyProperty
ZoomProperty System.Windows.DependencyProperty
ZoomingSpeedProperty System.Windows.DependencyProperty

Protected Properties

Property Type Description
ChartCoreModel ChartCore

Private Properties

Property Type Description
AttachHoverableEventTo void
Chart System
ChartUpdated void
DataMouseDown void
DataMouseEnter void
DataMouseLeave void
DisableSectionDragMouseUp void
DragSection void
GetDesignerModeCollection SeriesCollection
MouseWheelOnRoll void
OnDataClick void
OnDraggingEnd void
OnDraggingStart void
OnIsVisibleChanged void
OnLoaded void
OnSeriesChanged void
OnSizeChanged void
PrepareScrolBar void
ScrollBarOnMouseDown void
ScrollBarOnMouseMove void
ScrollBarOnMouseUp void
ScrollLimitOnChanged void
ScrollModeOnChanged void
SetClip void
TooltipTimeoutCallback void
TooltipTimeoutTimerOnTick void
UpdateChartFrequency void

Public Methods

Method Description
AddToDrawMargin ( object element ) : void

Adds to draw margin.

AddToView ( object element ) : void

Adds to view.

EnsureElementBelongsToCurrentDrawMargin ( object element ) : void

Ensures the element belongs to current draw margin.

EnsureElementBelongsToCurrentView ( object element ) : void

Ensures the element belongs to current view.

GetCanvas ( ) : object

Gets the canvas.

GetCanvasElements ( ) : int

Gets the canvas elements.

GetDrawMarginElements ( ) : int

Gets the draw margin elements.

GetNextDefaultColor ( ) : System.Color

Gets the default color of the next.

HideLegend ( ) : void

Hides the legend.

HideTooltip ( ) : void

Hides the tooltip.

LoadLegend ( ) : CoreSize

Loads the legend.

MapXAxes ( ChartCore chart ) : List

Maps the x axes.

MapYAxes ( ChartCore chart ) : List

Maps the y axes.

MockIt ( CoreSize size ) : void

Mocks it.

RemoveFromDrawMargin ( object element ) : void

Removes from draw margin.

RemoveFromView ( object element ) : void

Removes from view.

SetDrawMarginHeight ( double value ) : void

Sets the height of the draw margin.

SetDrawMarginLeft ( double value ) : void

Sets the draw margin left.

SetDrawMarginTop ( double value ) : void

Sets the draw margin top.

SetDrawMarginWidth ( double value ) : void

Sets the width of the draw margin.

ShowLegend ( CorePoint at ) : void

Shows the legend.

Update ( bool restartView = false, bool force = false ) : void

Forces the chart to update

Protected Methods

Method Description
CallChartUpdater ( bool animate = false, bool updateNow = false ) : PropertyChangedCallback

Calls the chart updater

GetTooltipPosition ( ChartPoint senderPoint ) : Point

Gets the tooltip position.

Private Methods

Method Description
AttachHoverableEventTo ( FrameworkElement element ) : void
Chart ( ) : System
ChartUpdated ( ) : void
DataMouseDown ( object sender, System.Windows.Input.MouseEventArgs e ) : void
DataMouseEnter ( object sender, EventArgs e ) : void
DataMouseLeave ( object sender, EventArgs e ) : void
DisableSectionDragMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs mouseButtonEventArgs ) : void
DragSection ( object sender, System.Windows.Input.MouseEventArgs e ) : void
GetDesignerModeCollection ( ) : SeriesCollection
MouseWheelOnRoll ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
OnDataClick ( object sender, ChartPoint point ) : void
OnDraggingEnd ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnDraggingStart ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnIsVisibleChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs ) : void
OnLoaded ( object sender, RoutedEventArgs args ) : void
OnSeriesChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSizeChanged ( object sender, System.Windows.SizeChangedEventArgs args ) : void
PrepareScrolBar ( ) : void
ScrollBarOnMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
ScrollBarOnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
ScrollBarOnMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
ScrollLimitOnChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ScrollModeOnChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetClip ( ) : void
TooltipTimeoutCallback ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs ) : void
TooltipTimeoutTimerOnTick ( object sender, EventArgs eventArgs ) : void
UpdateChartFrequency ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

AddToDrawMargin() public method

Adds to draw margin.
public AddToDrawMargin ( object element ) : void
element object The element.
return void

AddToView() public method

Adds to view.
public AddToView ( object element ) : void
element object The element.
return void

CallChartUpdater() protected static method

Calls the chart updater
protected static CallChartUpdater ( bool animate = false, bool updateNow = false ) : PropertyChangedCallback
animate bool if true, the series view will be removed and added again, this restarts animations also.
updateNow bool forces the updater to run as this function is called.
return PropertyChangedCallback

EnsureElementBelongsToCurrentDrawMargin() public method

Ensures the element belongs to current draw margin.
public EnsureElementBelongsToCurrentDrawMargin ( object element ) : void
element object The element.
return void

EnsureElementBelongsToCurrentView() public method

Ensures the element belongs to current view.
public EnsureElementBelongsToCurrentView ( object element ) : void
element object The element.
return void

GetCanvas() public method

Gets the canvas.
public GetCanvas ( ) : object
return object

GetCanvasElements() public method

Gets the canvas elements.
public GetCanvasElements ( ) : int
return int

GetDrawMarginElements() public method

Gets the draw margin elements.
public GetDrawMarginElements ( ) : int
return int

GetNextDefaultColor() public method

Gets the default color of the next.
public GetNextDefaultColor ( ) : System.Color
return System.Color

GetTooltipPosition() protected method

Gets the tooltip position.
protected GetTooltipPosition ( ChartPoint senderPoint ) : Point
senderPoint ChartPoint The sender point.
return Point

HideLegend() public method

Hides the legend.
public HideLegend ( ) : void
return void

HideTooltip() public method

Hides the tooltip.
public HideTooltip ( ) : void
return void

LoadLegend() public method

Loads the legend.
The current legend is not valid, ensure it implements IChartLegend
public LoadLegend ( ) : CoreSize
return CoreSize

MapXAxes() public method

Maps the x axes.
public MapXAxes ( ChartCore chart ) : List
chart ChartCore The chart.
return List

MapYAxes() public method

Maps the y axes.
public MapYAxes ( ChartCore chart ) : List
chart ChartCore The chart.
return List

MockIt() public method

Mocks it.
public MockIt ( CoreSize size ) : void
size CoreSize The size.
return void

RemoveFromDrawMargin() public method

Removes from draw margin.
public RemoveFromDrawMargin ( object element ) : void
element object The element.
return void

RemoveFromView() public method

Removes from view.
public RemoveFromView ( object element ) : void
element object The element.
return void

SetDrawMarginHeight() public method

Sets the height of the draw margin.
public SetDrawMarginHeight ( double value ) : void
value double The value.
return void

SetDrawMarginLeft() public method

Sets the draw margin left.
public SetDrawMarginLeft ( double value ) : void
value double The value.
return void

SetDrawMarginTop() public method

Sets the draw margin top.
public SetDrawMarginTop ( double value ) : void
value double The value.
return void

SetDrawMarginWidth() public method

Sets the width of the draw margin.
public SetDrawMarginWidth ( double value ) : void
value double The value.
return void

ShowLegend() public method

Shows the legend.
public ShowLegend ( CorePoint at ) : void
at CorePoint At.
return void

Update() public method

Forces the chart to update
public Update ( bool restartView = false, bool force = false ) : void
restartView bool Indicates whether the update should restart the view, animations will run again if true.
force bool Force the updater to run when called, without waiting for the next updater step.
return void

Property Details

AnimationsSpeedProperty public_oe static_oe property

The animations speed property
public static DependencyProperty,System.Windows AnimationsSpeedProperty
return System.Windows.DependencyProperty

AxisXProperty public_oe static_oe property

The axis x property
public static DependencyProperty,System.Windows AxisXProperty
return System.Windows.DependencyProperty

AxisYProperty public_oe static_oe property

The axis y property
public static DependencyProperty,System.Windows AxisYProperty
return System.Windows.DependencyProperty

ChartCoreModel protected_oe property

Chart core model, the model calculates the chart.
protected ChartCore ChartCoreModel
return ChartCore

ChartLegendProperty public_oe static_oe property

The chart legend property
public static DependencyProperty,System.Windows ChartLegendProperty
return System.Windows.DependencyProperty

DataTooltipProperty public_oe static_oe property

The data tooltip property
public static DependencyProperty,System.Windows DataTooltipProperty
return System.Windows.DependencyProperty

DisableAnimationsProperty public_oe static_oe property

The disable animations property
public static DependencyProperty,System.Windows DisableAnimationsProperty
return System.Windows.DependencyProperty

HoverableProperty public_oe static_oe property

The hoverable property
public static DependencyProperty,System.Windows HoverableProperty
return System.Windows.DependencyProperty

LegendLocationProperty public_oe static_oe property

The legend location property
public static DependencyProperty,System.Windows LegendLocationProperty
return System.Windows.DependencyProperty

ScrollBarFillProperty public_oe static_oe property

The scroll bar fill property
public static DependencyProperty,System.Windows ScrollBarFillProperty
return System.Windows.DependencyProperty

ScrollHorizontalFromProperty public_oe static_oe property

The scroll horizontal from property
public static DependencyProperty,System.Windows ScrollHorizontalFromProperty
return System.Windows.DependencyProperty

ScrollHorizontalToProperty public_oe static_oe property

The scroll horizontal to property
public static DependencyProperty,System.Windows ScrollHorizontalToProperty
return System.Windows.DependencyProperty

ScrollModeProperty public_oe static_oe property

The scroll mode property
public static DependencyProperty,System.Windows ScrollModeProperty
return System.Windows.DependencyProperty

ScrollVerticalFromProperty public_oe static_oe property

The scroll vertical from property
public static DependencyProperty,System.Windows ScrollVerticalFromProperty
return System.Windows.DependencyProperty

ScrollVerticalToProperty public_oe static_oe property

The scroll vertical to property
public static DependencyProperty,System.Windows ScrollVerticalToProperty
return System.Windows.DependencyProperty

SeriesColorsProperty public_oe static_oe property

The series colors property
public static DependencyProperty,System.Windows SeriesColorsProperty
return System.Windows.DependencyProperty

SeriesProperty public_oe static_oe property

The series property
public static DependencyProperty,System.Windows SeriesProperty
return System.Windows.DependencyProperty

TooltipTimeoutProperty public_oe static_oe property

The tooltip timeout property
public static DependencyProperty,System.Windows TooltipTimeoutProperty
return System.Windows.DependencyProperty

UpdaterStateProperty public_oe static_oe property

The updater state property
public static DependencyProperty,System.Windows UpdaterStateProperty
return System.Windows.DependencyProperty

ZoomProperty public_oe static_oe property

The zoom property
public static DependencyProperty,System.Windows ZoomProperty
return System.Windows.DependencyProperty

ZoomingSpeedProperty public_oe static_oe property

The zooming speed property
public static DependencyProperty,System.Windows ZoomingSpeedProperty
return System.Windows.DependencyProperty