Class Sparkline
A graph of recent values, one column each, the newest at the right edge, drawn to an eighth of a cell. DarkEffekt.Terminal.UI.Sparkline.Push(float) adds a value. One row tall unless DarkEffekt.Terminal.UI.Element.Height is set.
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public sealed class Sparkline : ElementInheritance: System.Object -> DarkEffekt.Terminal.UI.Element
Properties
Section titled “Properties”Capacity
Section titled “Capacity”The most values kept; older ones are dropped.
public int Capacity { get; set; }The value drawn as an empty column.
public float Min { get; set; }The value drawn as a full column.
public float Max { get; set; }public int Count { get; }Methods
Section titled “Methods”Push(float)
Section titled “Push(float)”public void Push(float value)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Single |
value |
Clear()
Section titled “Clear()”public void Clear()MeasureCore(CellSize)
Section titled “MeasureCore(CellSize)”The size this element wants, within the room given.
protected override CellSize MeasureCore(CellSize available)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.CellSize
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellSize | available |
RenderCore(CellCanvas)
Section titled “RenderCore(CellCanvas)”protected override void RenderCore(CellCanvas canvas)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellCanvas | canvas |