Class: $.GraphView

Inherits:
WatchUi.View show all

Overview

Show line graphs for the hemoglobin concentration

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _currentGraph as $.LineGraph

var _fonts as Lang.Array<Graphics.FontDefinition>

var _index as Lang.Number

var _indicator as $.PageIndicator

var _sensor as $.MO2Sensor

var _totalGraph as $.LineGraph

Instance Method Details

initialize(sensor as $.MO2Sensor, index as Lang.Number)

Constructor

Parameters:

  • sensor —

    ANT channel and data

  • index —

    Index corresponding to this view

onUpdate(dc as Graphics.Dc) as Void

Update the view

Parameters:

  • dc —

    Device Context

pickFont(dc as Graphics.Dc, string as Lang.String, width as Lang.Number) as Graphics.FontDefinition

Get the font that will fit the given string in the given width

Parameters:

  • dc —

    Device context

  • string —

    String that will use the font

  • width —

    Width to fit the string inside

Returns:

  • Font to use


Generated Jun 9, 2026, 8:45:45 AM