GraphPainter class

Inheritance

Constructors

GraphPainter(Test? test, int mOffset, int? gridPerMin, Interpretations2? interpretations)

Properties

drawingHeight double?
Drawing height
getter/setter pair
drawingWidth double?
Drawing width
getter/setter pair
graphBaseLine Paint?
getter/setter pair
graphBpmLine Paint?
Paint objects for BPM lines
getter/setter pair
graphBpmLine2 Paint?
getter/setter pair
graphGridLines Paint
getter/setter pair
graphGridMainLines Paint
Paint objects for different graph elements
getter/setter pair
graphGridSubLines Paint
getter/setter pair
graphMHRLine Paint?
Paint object for MHR line
getter/setter pair
graphNoiseZone Paint?
getter/setter pair
graphOutlines Paint
getter/setter pair
graphSafeZone Paint?
getter/setter pair
graphUnSafeZone Paint?
getter/setter pair
gridPerMin int?
Grid density (lines per minute)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interpretations Interpretations2?
Graph interpretation results
getter/setter pair
leftOffsetStart double?
Left offset start
getter/setter pair
mIncrement double
Increment for x-axis
getter/setter pair
mOffset int
Horizontal offset for graph scrolling
getter/setter pair
mTouchInitialStartIndex int
Initial start index for touch gesture
getter/setter pair
mTouchMode bool
Touch mode flag
getter/setter pair
mTouchStart double
Starting x-coordinate of touch gesture
getter/setter pair
paddingBottom double?
Bottom padding for graph area
getter/setter pair
paddingRight double
Right padding for graph area
getter/setter pair
paddingTop double
Top padding for graph area
getter/setter pair
pixelsPerOneCM double?
Pixels per centimeter
getter/setter pair
pixelsPerOneMM double?
Pixels per millimeter
getter/setter pair
pointsPerDiv int
Points per division
getter/setter pair
pointsPerPage int
Points per page
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleOrigin int
Origin for BPM scale
getter/setter pair
screenHeight double
Screen height
getter/setter pair
screenWidth double
Screen width
getter/setter pair
semanticsBuilder SemanticsBuilderCallback?
Returns a function that builds semantic information for the picture drawn by this painter.
no setterinherited
test Test?
Test data containing BPM, TOCO and movement measurements
final
timeScaleFactor int
Scale factor for time axis
getter/setter pair
topOffsetEnd double?
Top offset end
getter/setter pair
xAxisLength double
Length of x-axis
getter/setter pair
xDiv int
Number of x-axis divisions
getter/setter pair
xDivLength double?
Length of x-axis division
getter/setter pair
xOrigin double
Origin x-coordinate for graph
getter/setter pair
xTocoOrigin double?
Origin x-coordinate for TOCO graph
getter/setter pair
yAxisLength double?
Length of y-axis
getter/setter pair
yDiv double
Length of y-axis division
getter/setter pair
yDivLength double
Length of y-axis division
getter/setter pair
yOrigin double
Origin y-coordinate for graph
getter/setter pair
yTocoDiv double
Length of TOCO y-axis division
getter/setter pair
yTocoEnd double
End y-coordinate for TOCO graph
getter/setter pair
yTocoOrigin double
Origin y-coordinate for TOCO graph
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be notified when it is time to repaint.
inherited
drawAutoMovements(Canvas canvas) → void
Draws auto-detected movement markers on the graph canvas is the canvas to draw on.
drawBPMLine(Canvas canvas, List<int>? list, Paint? lineStyle) → void
Draws data points and connecting lines for BPM measurements
drawGraph(Canvas canvas) → dynamic
Draws the complete graph
drawInterpretationAreas(Canvas canvas, List<MarkerIndices>? list, Paint? zoneStyle) → void
Draws interpretation areas on the graph canvas is the canvas to draw on. list is the list of marker indices. zoneStyle is the paint style for the zone.
drawMHRLine(Canvas canvas, List<int>? list, Paint? lineStyle) → void
Draws data points and connecting lines for MHR measurements
drawMovements(Canvas canvas) → void
Draws movement markers on the graph
drawTocoLine(Canvas canvas) → void
Draws data points and connecting lines for TOCO measurements canvas is the canvas to draw on.
drawTocoXAxis(Canvas canvas) → void
Draws the TOCO x-axis with grid lines
drawTocoYAxis(Canvas canvas) → void
Draws the TOCO y-axis with grid lines and pressure labels
drawXAxis(Canvas canvas) → void
Draws the main x-axis with grid lines and time labels
drawYAxis(Canvas canvas) → void
Draws the main y-axis with grid lines and BPM labels
getParagraph(String text) Paragraph
Returns a ui.Paragraph object for the given text.
getScreenX(int i) double
Calculates screen x-coordinate from data index
getScreenXToco(int i) double
Calculates screen x-coordinate for TOCO data from data index i is the data index. Returns the x-coordinate on the screen.
getYValueFromBPM(int bpm) double
Converts BPM value to screen y-coordinate
getYValueFromToco(int bpm) double
Converts TOCO value to screen y-coordinate bpm is the TOCO value. Returns the y-coordinate on the screen.
hitTest(Offset position) bool?
Called whenever a hit test is being performed on an object that is using this custom paint delegate.
inherited
init(Size size) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Size size) → void
Main paint method that draws the entire graph
override
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies when it is time to repaint.
inherited
shouldRebuildSemantics(covariant CustomPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former).
inherited
shouldRepaint(covariant GraphPainter oldDelegate) bool
Determines whether the painter should repaint
override
toString() String
A string representation of this object.
inherited
trap(int pos) int
Ensures offset stays within valid range pos is the proposed offset value. Returns clamped offset between 0 and maximum data points.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

NUMBER_OF_HORIZONTAL_LINES → const int