Class
FrameBars
ConsoleMonster.Frames
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
- The literal note.
- state ConsoleMonster.Frames.HealthState
- The note's state.
- width int
- Cells.
- context ConsoleMonster.Canvas.RenderContext
- 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
- Start of the range, 0 to 1 on the axis.
- to double
- End of the range, 0 to 1 on the axis.
- width int
- Cells.
- state ConsoleMonster.Frames.HealthState?
- The range's state; null or healthy draws it neutral.
- threshold double?
- An optional threshold position, 0 to 1, supplied by the data owner.
- context ConsoleMonster.Canvas.RenderContext
- The destination.
Returns
string Markup exactly width cells wide.