ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | List of all members
ScottPlot.Avalonia.AvaPlotMenu Class Reference
Inheritance diagram for ScottPlot.Avalonia.AvaPlotMenu:
ScottPlot.IPlotMenu

Public Member Functions

 AvaPlotMenu (AvaPlot avaPlot)
 
ContextMenuItem[] GetDefaultContextMenuItems ()
 
ContextMenu GetContextMenu (Plot plot)
 
async void OpenSaveImageDialog (Plot plot)
 
void Autoscale (Plot plot)
 
void ShowContextMenu (Pixel pixel)
 
void Reset ()
 
void Clear ()
 
void Add (string Label, Action< Plot > action)
 
void AddSeparator ()
 

Public Attributes

readonly List< FilePickerFileType > filePickerFileTypes
 

Properties

string DefaultSaveImageFilename = "Plot.png" [get, set]
 
List< ContextMenuItemContextMenuItems = new() [get, set]
 

Constructor & Destructor Documentation

◆ AvaPlotMenu()

ScottPlot.Avalonia.AvaPlotMenu.AvaPlotMenu ( AvaPlot  avaPlot)
inline

Member Function Documentation

◆ Add()

void ScottPlot.Avalonia.AvaPlotMenu.Add ( string  Label,
Action< Plot action 
)
inline

Implements ScottPlot.IPlotMenu.

◆ AddSeparator()

void ScottPlot.Avalonia.AvaPlotMenu.AddSeparator ( )
inline

Implements ScottPlot.IPlotMenu.

◆ Autoscale()

void ScottPlot.Avalonia.AvaPlotMenu.Autoscale ( Plot  plot)
inline

◆ Clear()

void ScottPlot.Avalonia.AvaPlotMenu.Clear ( )
inline

Implements ScottPlot.IPlotMenu.

◆ GetContextMenu()

ContextMenu ScottPlot.Avalonia.AvaPlotMenu.GetContextMenu ( Plot  plot)
inline

◆ GetDefaultContextMenuItems()

ContextMenuItem[] ScottPlot.Avalonia.AvaPlotMenu.GetDefaultContextMenuItems ( )
inline

◆ OpenSaveImageDialog()

async void ScottPlot.Avalonia.AvaPlotMenu.OpenSaveImageDialog ( Plot  plot)
inline

◆ Reset()

void ScottPlot.Avalonia.AvaPlotMenu.Reset ( )
inline

Implements ScottPlot.IPlotMenu.

◆ ShowContextMenu()

void ScottPlot.Avalonia.AvaPlotMenu.ShowContextMenu ( Pixel  pixel)
inline

Implements ScottPlot.IPlotMenu.

Member Data Documentation

◆ filePickerFileTypes

readonly List<FilePickerFileType> ScottPlot.Avalonia.AvaPlotMenu.filePickerFileTypes
Initial value:
= new()
{
new("PNG Files") { Patterns = new List<string> { "*.png" } },
new("JPEG Files") { Patterns = new List<string> { "*.jpg", "*.jpeg" } },
new("BMP Files") { Patterns = new List<string> { "*.bmp" } },
new("WebP Files") { Patterns = new List<string> { "*.webp" } },
new("SVG Files") { Patterns = new List<string> { "*.svg" } },
new("All Files") { Patterns = new List<string> { "*" } },
}

Property Documentation

◆ ContextMenuItems

List<ContextMenuItem> ScottPlot.Avalonia.AvaPlotMenu.ContextMenuItems = new()
getset

◆ DefaultSaveImageFilename

string ScottPlot.Avalonia.AvaPlotMenu.DefaultSaveImageFilename = "Plot.png"
getset

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