Class: $.GraphView
Overview
Show line graphs for the hemoglobin concentration
Instance Member Summary collapse
- _currentGraph as $.LineGraph
- _fonts as Lang.Array<Graphics.FontDefinition>
- _index as Lang.Number
- _indicator as $.PageIndicator
- _sensor as $.MO2Sensor
- _totalGraph as $.LineGraph
Instance Method Summary collapse
-
initialize(sensor as $.MO2Sensor, index as Lang.Number)
Constructor.
-
onUpdate(dc as Graphics.Dc) as Void
Update the view.
-
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.
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
onUpdate(dc as Graphics.Dc) as Void
Update the view
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