Table of Contents

Interface IUserActionResponse

Namespace
ScottPlot.Interactivity
Assembly
ScottPlot.dll

Describes a class that has logic to watch user actions and manipulate the plot accordingly.

public interface IUserActionResponse
Extension Methods

Methods

Execute(IPlotControl, IUserAction, KeyboardState)

Perform the given action on the specified plot and return a result indicating what to do next.

ResponseInfo Execute(IPlotControl plotControl, IUserAction userActions, KeyboardState keys)

Parameters

plotControl IPlotControl
userActions IUserAction
keys KeyboardState

Returns

ResponseInfo

ResetState(IPlotControl)

Reset state to what it was when the action response was first created. This method is called when the user processor resets (e.g., when the control loses and re-gains focus or is disabled and re-enabled) and is designed to reset responses like mouse-drag events that accumulate state.

void ResetState(IPlotControl plotControl)

Parameters

plotControl IPlotControl