ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | List of all members
ScottPlot.Plottables.Text Class Reference
Inheritance diagram for ScottPlot.Plottables.Text:
ScottPlot.LabelStyleProperties ScottPlot.IPlottable ScottPlot.IHasLabel

Public Member Functions

AxisLimits GetAxisLimits ()
 Return the 2D area (in coordinate space) occupied by the data contained in this plottable.
 
virtual void Render (RenderPack rp)
 Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.
 

Public Attributes

readonly LabelStyle Label = null!
 

Properties

Coordinates Location [get, set]
 
float OffsetX [get, set]
 
float OffsetY [get, set]
 
override LabelStyle LabelStyle = new() { FontSize = 14 } [get, set]
 
Alignment Alignment [get, set]
 
bool IsVisible = true [get, set]
 Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method).
 
IAxes Axes = new Axes() [get, set]
 This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time.
 
IEnumerable< LegendItemLegendItems [get]
 Items which will appear in the legend.
 
Color Color [get, set]
 
Color FontColor [get, set]
 
Color BackgroundColor [get, set]
 
Color BackColor [get, set]
 
Color BorderColor [get, set]
 
float BorderWidth [get, set]
 
float Padding [set]
 
float Size [get, set]
 
float FontSize [get, set]
 
bool Bold [get, set]
 
float Rotation [get, set]
 
string FontName [get, set]
 
float? LineSpacing [get, set]
 
- Properties inherited from ScottPlot.LabelStyleProperties
LabelStyle LabelStyle [get, set]
 
float LabelOffsetX [get, set]
 
float LabelOffsetY [get, set]
 
float LabelRotation [get, set]
 
float LabelPadding [set]
 
PixelPadding LabelPixelPadding [get, set]
 
PixelRect LabelLastRenderPixelRect [get]
 
string LabelText [get, set]
 
Alignment LabelAlignment [get, set]
 
string LabelFontName [get, set]
 
float LabelFontSize [get, set]
 
float? LabelLineSpacing [get, set]
 
bool LabelItalic [get, set]
 
bool LabelBold [get, set]
 
Color LabelFontColor [get, set]
 
Color LabelBackgroundColor [get, set]
 
float LabelBorderRadius [get, set]
 
float LabelBorderRadiusX [get, set]
 
float LabelBorderRadiusY [get, set]
 
float LabelBorderWidth [get, set]
 
Color LabelBorderColor [get, set]
 
Color LabelShadowColor [get, set]
 
PixelOffset LabelShadowOffset [get, set]
 
- Properties inherited from ScottPlot.IHasLabel
- Properties inherited from ScottPlot.IPlottable

Member Function Documentation

◆ GetAxisLimits()

AxisLimits ScottPlot.Plottables.Text.GetAxisLimits ( )
inline

Return the 2D area (in coordinate space) occupied by the data contained in this plottable.

Implements ScottPlot.IPlottable.

◆ Render()

virtual void ScottPlot.Plottables.Text.Render ( RenderPack  rp)
inlinevirtual

Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.

Implements ScottPlot.IPlottable.

Member Data Documentation

◆ Label

readonly LabelStyle ScottPlot.Plottables.Text.Label = null!

Property Documentation

◆ Alignment

Alignment ScottPlot.Plottables.Text.Alignment
getset

◆ Axes

IAxes ScottPlot.Plottables.Text.Axes = new Axes()
getset

This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time.

Implements ScottPlot.IPlottable.

◆ BackColor

Color ScottPlot.Plottables.Text.BackColor
getset

◆ BackgroundColor

Color ScottPlot.Plottables.Text.BackgroundColor
getset

◆ Bold

bool ScottPlot.Plottables.Text.Bold
getset

◆ BorderColor

Color ScottPlot.Plottables.Text.BorderColor
getset

◆ BorderWidth

float ScottPlot.Plottables.Text.BorderWidth
getset

◆ Color

Color ScottPlot.Plottables.Text.Color
getset

◆ FontColor

Color ScottPlot.Plottables.Text.FontColor
getset

◆ FontName

string ScottPlot.Plottables.Text.FontName
getset

◆ FontSize

float ScottPlot.Plottables.Text.FontSize
getset

◆ IsVisible

bool ScottPlot.Plottables.Text.IsVisible = true
getset

Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method).

Implements ScottPlot.IPlottable.

◆ LabelStyle

override LabelStyle ScottPlot.Plottables.Text.LabelStyle = new() { FontSize = 14 }
getset

Implements ScottPlot.IHasLabel.

◆ LegendItems

IEnumerable<LegendItem> ScottPlot.Plottables.Text.LegendItems
get

Items which will appear in the legend.

Implements ScottPlot.IPlottable.

◆ LineSpacing

float? ScottPlot.Plottables.Text.LineSpacing
getset

◆ Location

Coordinates ScottPlot.Plottables.Text.Location
getset

◆ OffsetX

float ScottPlot.Plottables.Text.OffsetX
getset

◆ OffsetY

float ScottPlot.Plottables.Text.OffsetY
getset

◆ Padding

float ScottPlot.Plottables.Text.Padding
setadd

◆ Rotation

float ScottPlot.Plottables.Text.Rotation
getset

◆ Size

float ScottPlot.Plottables.Text.Size
getset

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