InspectSeriesModifierBase
An abstract base class which factors out handling of Axis and Chart Label templates which are shared in the CursorModifier and RolloverModifier.
Inherits: ChartModifierBase
Constructors
protected InspectSeriesModifierBase()
inspectSeriesModifierBase = InspectSeriesModifierBase()
Initializes a new instance of the InspectSeriesModifierBase class.
Properties
public ChartDataObject SeriesData { get; set; }
value = inspectSeriesModifierBase.SeriesData
inspectSeriesModifierBase.SeriesData = value
Gets or sets the ChartDataObject which may be bound to, to provide feedback to the user of cursor updates
public SourceMode SourceMode { get; set; }
value = inspectSeriesModifierBase.SourceMode
inspectSeriesModifierBase.SourceMode = value
Gets or sets type of series on which interaction is performed
public bool UseInterpolation { get; set; }
value = inspectSeriesModifierBase.UseInterpolation
inspectSeriesModifierBase.UseInterpolation = value
Gets or sets whether the interaction should use interpolation
Methods
protected abstract void ClearAll()
inspectSeriesModifierBase.ClearAll()
When overriden in a derived class, this method should clear all markers and tooltips from the ModifierSurface
protected IEnumerable<SeriesInfo> GetSeriesInfoAt(Func<IRenderableSeries, HitTestInfo> hitTestMethod)
result = inspectSeriesModifierBase.GetSeriesInfoAt(hitTestMethod)
Called internally, gets the SeriesInfo on all RenderableSeries using the provided hit-test function
- hitTestMethod
- The hit-test function
Returns: The seriesinfo list
protected virtual IEnumerable<SeriesInfo> GetSeriesInfoAt(Point point, double hitTestRadius)
result = inspectSeriesModifierBase.GetSeriesInfoAt(point, hitTestRadius)
Enumerates RenderableSeries on the parent ParentSurface and gets SeriesInfo objects in given point
- point
- hitTestRadius
protected virtual IEnumerable<SeriesInfo> GetSeriesInfoAt(Point point)
result = inspectSeriesModifierBase.GetSeriesInfoAt(point)
Enumerates RenderableSeries on the parent ParentSurface and gets SeriesInfo objects in given point
- point
protected abstract void HandleMasterMouseEvent(Point mousePoint)
inspectSeriesModifierBase.HandleMasterMouseEvent(mousePoint)
When overriden in a derived class, called to handle the Master ChartModifierBase MouseMove event
- mousePoint
- The current Mouse-point
protected void HandleMouseEvent(ModifierMouseArgs e)
inspectSeriesModifierBase.HandleMouseEvent(e)
General logic for processing mouse events
- e
protected abstract void HandleSlaveMouseEvent(Point mousePoint)
inspectSeriesModifierBase.HandleSlaveMouseEvent(mousePoint)
When overriden in a derived class, called to handle the Slave ChartModifierBase MouseMove event
- mousePoint
- The current Mouse-point
protected AxisInfo HitTestAxis(IAxis axis, Point atPoint)
result = inspectSeriesModifierBase.HitTestAxis(axis, atPoint)
Performs hit-test on , used internally by modifiers
- axis
- atPoint
protected virtual bool IsEnabledAt(Point point)
result = inspectSeriesModifierBase.IsEnabledAt(point)
When overridden in derived classes, indicates whether mouse point is valid for current modifier
- point
protected virtual bool IsHitPointValid(HitTestInfo hitTestInfo)
result = inspectSeriesModifierBase.IsHitPointValid(hitTestInfo)
When overridden in derived classes, indicates whether HitTestInfo result of hit-test should be returned from the Point) method.
- hitTestInfo
protected virtual bool IsSeriesValid(IRenderableSeries series)
result = inspectSeriesModifierBase.IsSeriesValid(series)
When overridden in derived classes, indicates whether the series should be inspected in order to get SeriesInfo inside the Point) method.
- series
public override void OnModifierMouseMove(ModifierMouseArgs e)
inspectSeriesModifierBase.OnModifierMouseMove(e)
Called when the Mouse is moved on the parent UltrachartSurface
- e
- Arguments detailing the mouse move operation
protected override void OnParentSurfaceMouseLeave()
inspectSeriesModifierBase.OnParentSurfaceMouseLeave()
Called when the mouse leaves the parent UltrachartSurface
public override void OnParentSurfaceRendered(UltrachartRenderedMessage e)
inspectSeriesModifierBase.OnParentSurfaceRendered(e)
Called when the parent UltrachartSurface is rendered
- e
- The UltrachartRenderedMessage which contains the event arg data
Fields
protected Point CurrentPoint
value = inspectSeriesModifierBase.CurrentPoint
The Current MousePoint on the parent ModifierSurface
public static readonly DependencyProperty SeriesDataProperty
value = InspectSeriesModifierBase.SeriesDataProperty
Defines the SeriesData Dependency property which you may bind to in your applications to show cursor updates on mouse-move
public static readonly DependencyProperty SourceModeProperty
value = InspectSeriesModifierBase.SourceModeProperty
Defines the RolloverMode DependencyProperty
public static readonly DependencyProperty UseInterpolationProperty
value = InspectSeriesModifierBase.UseInterpolationProperty
Defines the UseInterpolation DependencyProperty