|
ScottPlot
|
A plot control that renders in-memory and has functionality useful for testing interactivity. More...
Public Member Functions | |
| MockPlotControl () | |
| float | DetectDisplayScale () |
| Determine the DPI scaling ratio of the present display. A value of 1.0 means no scaling, and 1.5 means 150% scaling. This operation may be costly so do not call it frequently. | |
| void | Refresh () |
| Render the plot and update the image. | |
| void | Reset () |
| Disposes the current Plot and creates a new one for the control. | |
| void | Reset (Plot plot) |
| Loads the given Plot into the control. | |
| void | ShowContextMenu (Pixel position) |
| Launch the default pop-up menu (typically in response to a right-click) at the given position in the control. | |
| void | ScrollWheelUp (Pixel pixel) |
| void | ScrollWheelDown (Pixel pixel) |
| void | PressShift () |
| void | ReleaseShift () |
| void | PressCtrl () |
| void | ReleaseCtrl () |
| void | PressAlt () |
| void | ReleaseAlt () |
| void | TapRightArrow () |
| void | TapLeftArrow () |
| void | TapUpArrow () |
| void | TapDownArrow () |
| void | PressKey (Key key) |
| void | ReleaseKey (Key key) |
| void | TapKey (Key key) |
| void | MoveMouse (Pixel px) |
| void | LeftMouseDown (Pixel px) |
| void | LeftMouseUp (Pixel px) |
| void | LeftClick (Pixel px) |
| void | LeftClickDrag (Pixel px1, Pixel px2) |
| void | RightMouseDown (Pixel px) |
| void | RightMouseUp (Pixel px) |
| void | RightClick (Pixel px) |
| void | RightClickDrag (Pixel px1, Pixel px2) |
| void | MiddleMouseDown (Pixel px) |
| void | MiddleMouseUp (Pixel px) |
| void | MiddleClick (Pixel px) |
| void | MiddleClickDrag (Pixel px1, Pixel px2) |
Properties | |
| int | Width = 400 [get, set] |
| int | Height = 300 [get, set] |
| Pixel | Center [get] |
| Plot | Plot [get] |
| The primary Plot displayed by this interactive control. | |
| IMultiplot | Multiplot [get, set] |
| The multiplot managed by this interactive control. | |
| GRContext? | GRContext [get] |
| Context for hardware-accelerated graphics (or null if not available) | |
| UserInputProcessor | UserInputProcessor [get] |
| This object takes in UI events and contains logic for how to respond to them. This is a newer alternative to the older Interaction system. | |
| IPlotMenu? | Menu [get, set] |
| Platform-specific logic for managing the context menu. | |
| float | DisplayScale = 1 [get, set] |
| The value of the present display scaling. Mouse positions are multiplied by this value for pixel/coordinate conversions. | |
| int | RefreshCount = 0 [get] |
| int | ContextMenuLaunchCount = 0 [get] |
Properties inherited from ScottPlot.IPlotControl | |
A plot control that renders in-memory and has functionality useful for testing interactivity.
|
inline |
| float ScottPlot.Testing.MockPlotControl.DetectDisplayScale | ( | ) |
Determine the DPI scaling ratio of the present display. A value of 1.0 means no scaling, and 1.5 means 150% scaling. This operation may be costly so do not call it frequently.
Implements ScottPlot.IPlotControl.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void ScottPlot.Testing.MockPlotControl.PressAlt | ( | ) |
| void ScottPlot.Testing.MockPlotControl.PressCtrl | ( | ) |
|
inline |
| void ScottPlot.Testing.MockPlotControl.PressShift | ( | ) |
|
inline |
Render the plot and update the image.
Implements ScottPlot.IPlotControl.
| void ScottPlot.Testing.MockPlotControl.ReleaseAlt | ( | ) |
| void ScottPlot.Testing.MockPlotControl.ReleaseCtrl | ( | ) |
|
inline |
| void ScottPlot.Testing.MockPlotControl.ReleaseShift | ( | ) |
|
inline |
Disposes the current Plot and creates a new one for the control.
Implements ScottPlot.IPlotControl.
|
inline |
Loads the given Plot into the control.
Implements ScottPlot.IPlotControl.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void ScottPlot.Testing.MockPlotControl.ShowContextMenu | ( | Pixel | position | ) |
Launch the default pop-up menu (typically in response to a right-click) at the given position in the control.
Implements ScottPlot.IPlotControl.
| void ScottPlot.Testing.MockPlotControl.TapDownArrow | ( | ) |
|
inline |
| void ScottPlot.Testing.MockPlotControl.TapLeftArrow | ( | ) |
| void ScottPlot.Testing.MockPlotControl.TapRightArrow | ( | ) |
| void ScottPlot.Testing.MockPlotControl.TapUpArrow | ( | ) |
|
get |
|
get |
|
getset |
The value of the present display scaling. Mouse positions are multiplied by this value for pixel/coordinate conversions.
Implements ScottPlot.IPlotControl.
|
get |
Context for hardware-accelerated graphics (or null if not available)
Implements ScottPlot.IPlotControl.
|
getset |
|
getset |
Platform-specific logic for managing the context menu.
Implements ScottPlot.IPlotControl.
|
getset |
The multiplot managed by this interactive control.
Implements ScottPlot.IPlotControl.
|
get |
The primary Plot displayed by this interactive control.
Implements ScottPlot.IPlotControl.
|
get |
|
get |
This object takes in UI events and contains logic for how to respond to them. This is a newer alternative to the older Interaction system.
Implements ScottPlot.IPlotControl.
|
getset |