Table of Contents

Class LegendAnnotation

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Used by GraphView to render smbol definitions in a graph, e.g. colors and their meanings

public class LegendAnnotation : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IAnnotation
Inheritance
LegendAnnotation
Implements
Inherited Members

Constructors

LegendAnnotation()

Creates a new empty legend at the empty screen coordinates.

LegendAnnotation(Rectangle)

Creates a new empty legend at the given screen coordinates.

Properties

BeforeSeries

Returns false i.e. Legends render after series

Methods

AddEntry(GraphCellToRender, string)

Adds an entry into the legend. Duplicate entries are permissible

OnClearingViewport()

Called when the Viewport is to be cleared.

OnDrawingText()

Called when the Text of the View is to be drawn.

Render(GraphView)

Draws the Legend and all entries into the area within Viewport