Skip to content
ConsoleMonster
Class

FrameBars

ConsoleMonster.Frames

Namespace
ConsoleMonster.Frames
Assembly
ConsoleMonster
Modifiers
static

Inline bars as markup for the destination's glyph tier, so they can sit in table cells and lists. Line bars are a heavy stroke on a light track with half-cell precision; on Basic they are lower half blocks, on ASCII # on ..

Inheritance

  • object
  • FrameBars

Methods

public static string Note(string text, HealthState state, int width, RenderContext context) #

A state glyph and a note in place of a bar, for values that were not reported.

Parameters

text string required
The literal note.
state ConsoleMonster.Frames.HealthState required
The note's state.
width int required
Cells.
context ConsoleMonster.Canvas.RenderContext required
The destination.

Returns

string Markup at most width cells wide.
public static string Range(double from, double to, int width, HealthState? state, double? threshold, RenderContext context) #

A range on a shared axis: a track, a segment from from to to and a dot at to.

Parameters

from double required
Start of the range, 0 to 1 on the axis.
to double required
End of the range, 0 to 1 on the axis.
width int required
Cells.
state ConsoleMonster.Frames.HealthState? required
The range's state; null or healthy draws it neutral.
threshold double? required
An optional threshold position, 0 to 1, supplied by the data owner.
context ConsoleMonster.Canvas.RenderContext required
The destination.

Returns

string Markup exactly width cells wide.