Table of Contents

Class ObjectTextVisualizer

Namespace
Bonsai.Design
Assembly
Bonsai.Design.dll

Provides a type visualizer for displaying any object type as text.

public class ObjectTextVisualizer : BufferedVisualizer
Inheritance
ObjectTextVisualizer
Derived
Inherited Members

Properties

TargetInterval

Gets or sets the target interval, in milliseconds, between visualizer updates.

protected override int TargetInterval { get; }

Property Value

int

Methods

AppendDisplayText(StringBuilder, object)

Appends the display text for the specified object to the text buffer.

protected virtual void AppendDisplayText(StringBuilder stringBuilder, object value)

Parameters

stringBuilder StringBuilder

The string builder which receives the display text.

value object

The object for which to retrieve the display text.

Load(IServiceProvider)

Loads type visualizer resources using the specified service provider.

public override void Load(IServiceProvider provider)

Parameters

provider IServiceProvider

A service provider object which can be used to obtain visualization, runtime inspection, or other editing services.

Show(object)

Updates the type visualizer to display the specified value object.

public override void Show(object value)

Parameters

value object

The value to visualize.

ShowBuffer(IList<Timestamped<object>>)

Updates the type visualizer with a new buffer of timestamped values.

protected override void ShowBuffer(IList<Timestamped<object>> values)

Parameters

values IList<Timestamped<object>>

A buffer of timestamped values where each timestamp indicates the time at which the value was received.

Unload()

Unloads all type visualizer resources.

public override void Unload()