ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Properties | List of all members
ScottPlot.Maui.MauiPlot Class Reference
Inheritance diagram for ScottPlot.Maui.MauiPlot:
SKCanvasView ScottPlot.IPlotControl

Public Member Functions

 MauiPlot ()
 
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 Refresh ()
 Render the plot and update the image.
 
void ShowContextMenu (Pixel position)
 Launch the default pop-up menu (typically in response to a right-click) at the given position in the control.
 
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.
 

Protected Member Functions

override void OnPaintSurface (SKPaintSurfaceEventArgs e)
 

Properties

Plot Plot = new() [get, set]
 The primary Plot displayed by this interactive control.
 
IMultiplot Multiplot [get, set]
 The multiplot managed by this interactive control.
 
SkiaSharp.? GRContext GRContext [get]
 Context for hardware-accelerated graphics (or null if not available)
 
IPlotMenuMenu [get, set]
 Platform-specific logic for managing the context menu.
 
Interactivity.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.
 
float DisplayScale = 1 [get, set]
 The value of the present display scaling. Mouse positions are multiplied by this value for pixel/coordinate conversions.
 
- Properties inherited from ScottPlot.IPlotControl

Constructor & Destructor Documentation

◆ MauiPlot()

ScottPlot.Maui.MauiPlot.MauiPlot ( )
inline

Member Function Documentation

◆ DetectDisplayScale()

float ScottPlot.Maui.MauiPlot.DetectDisplayScale ( )
inline

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.

◆ OnPaintSurface()

override void ScottPlot.Maui.MauiPlot.OnPaintSurface ( SKPaintSurfaceEventArgs  e)
inlineprotected

◆ Refresh()

void ScottPlot.Maui.MauiPlot.Refresh ( )
inline

Render the plot and update the image.

Implements ScottPlot.IPlotControl.

◆ Reset() [1/2]

void ScottPlot.Maui.MauiPlot.Reset ( )
inline

Disposes the current Plot and creates a new one for the control.

Implements ScottPlot.IPlotControl.

◆ Reset() [2/2]

void ScottPlot.Maui.MauiPlot.Reset ( Plot  plot)
inline

Loads the given Plot into the control.

Implements ScottPlot.IPlotControl.

◆ ShowContextMenu()

void ScottPlot.Maui.MauiPlot.ShowContextMenu ( Pixel  position)
inline

Launch the default pop-up menu (typically in response to a right-click) at the given position in the control.

Implements ScottPlot.IPlotControl.

Property Documentation

◆ DisplayScale

float ScottPlot.Maui.MauiPlot.DisplayScale = 1
getset

The value of the present display scaling. Mouse positions are multiplied by this value for pixel/coordinate conversions.

Implements ScottPlot.IPlotControl.

◆ GRContext

SkiaSharp.? GRContext ScottPlot.Maui.MauiPlot.GRContext
get

Context for hardware-accelerated graphics (or null if not available)

Implements ScottPlot.IPlotControl.

◆ Menu

IPlotMenu? ScottPlot.Maui.MauiPlot.Menu
getset

Platform-specific logic for managing the context menu.

Implements ScottPlot.IPlotControl.

◆ Multiplot

IMultiplot ScottPlot.Maui.MauiPlot.Multiplot
getset

The multiplot managed by this interactive control.

Implements ScottPlot.IPlotControl.

◆ Plot

Plot ScottPlot.Maui.MauiPlot.Plot = new()
getset

The primary Plot displayed by this interactive control.

Implements ScottPlot.IPlotControl.

◆ UserInputProcessor

Interactivity.UserInputProcessor ScottPlot.Maui.MauiPlot.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.

Implements ScottPlot.IPlotControl.


The documentation for this class was generated from the following file: