ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.Panels.PanelBase Class Referenceabstract
Inheritance diagram for ScottPlot.Panels.PanelBase:
ScottPlot.IPanel

Public Member Functions

float Measure ()
 Return the size (in pixels) of the panel in the dimension perpendicular to the edge it lays on.
 
void Render (RenderPack rp, float size, float offset)
 Draw this panel on a canvas.
 
PixelRect GetPanelRect (PixelRect dataRect, float size, float offset)
 Return the rectangle for this panel.
 

Properties

bool IsVisible = true [get, set]
 If false, the panel will not be displayed or report any size.
 
Edge Edge [get, set]
 Indicates which edge of the data rectangle this panel lays on.
 
bool ShowDebugInformation = false [get, set]
 Enable this to display extra information on the axis to facilitate development.
 
float MinimumSize = 0 [get, set]
 Disallow the panel to be smaller than this.
 
float MaximumSize = float.MaxValue [get, set]
 Disallow the panel to be larger than this.
 
- Properties inherited from ScottPlot.IPanel

Member Function Documentation

◆ GetPanelRect()

PixelRect ScottPlot.Panels.PanelBase.GetPanelRect ( PixelRect  dataRect,
float  size,
float  offset 
)
inline

Return the rectangle for this panel.

Implements ScottPlot.IPanel.

◆ Measure()

float ScottPlot.Panels.PanelBase.Measure ( )
abstract

Return the size (in pixels) of the panel in the dimension perpendicular to the edge it lays on.

Returns

Implements ScottPlot.IPanel.

◆ Render()

void ScottPlot.Panels.PanelBase.Render ( RenderPack  rp,
float  size,
float  offset 
)
abstract

Draw this panel on a canvas.

Parameters
surfacecontains the canvas to draw on
dataRectdimensions of the data area (pixel units)
sizesize of this panel (pixel units)
offsetdistance from the edge of this panel to the edge of the data area

Implements ScottPlot.IPanel.

Property Documentation

◆ Edge

Edge ScottPlot.Panels.PanelBase.Edge
getset

Indicates which edge of the data rectangle this panel lays on.

Implements ScottPlot.IPanel.

◆ IsVisible

bool ScottPlot.Panels.PanelBase.IsVisible = true
getset

If false, the panel will not be displayed or report any size.

Implements ScottPlot.IPanel.

◆ MaximumSize

float ScottPlot.Panels.PanelBase.MaximumSize = float.MaxValue
getset

Disallow the panel to be larger than this.

Implements ScottPlot.IPanel.

◆ MinimumSize

float ScottPlot.Panels.PanelBase.MinimumSize = 0
getset

Disallow the panel to be smaller than this.

Implements ScottPlot.IPanel.

◆ ShowDebugInformation

bool ScottPlot.Panels.PanelBase.ShowDebugInformation = false
getset

Enable this to display extra information on the axis to facilitate development.

Implements ScottPlot.IPanel.


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