GraphPainter2 class

Inheritance

Constructors

GraphPainter2(Test test, int mOffset, int gridPerMin, {Interpretations2? interpretations, int displayFhr = 0})

Properties

auto bool
Auto mode flag.
getter/setter pair
displayFhr int
Display mode for FHR (Fetal Heart Rate).
getter/setter pair
drawingHeight double
Height of the drawing area.
getter/setter pair
drawingWidth double
Width of the drawing area.
getter/setter pair
fhr2Offset int
Offset for FHR2 values.
getter/setter pair
graphBaseLine Paint
Paint object for baseline BPM line.
getter/setter pair
graphBpmLine Paint
Paint object for BPM line.
getter/setter pair
graphBpmLine2 Paint
Paint object for second BPM line.
getter/setter pair
graphBpmLine3 Paint
Paint object for third BPM line.
getter/setter pair
graphBpmLine4 Paint
Paint object for fourth BPM line.
getter/setter pair
graphGridLines Paint
Paint object for regular grid lines.
getter/setter pair
graphGridMainLines Paint
Paint object for major grid lines.
getter/setter pair
graphGridSubLines Paint
Paint object for minor grid lines.
getter/setter pair
graphNoiseZone Paint
Paint object for noise area highlighting.
getter/setter pair
graphOutlines Paint
Paint object for graph outlines.
getter/setter pair
graphSafeZone Paint
Paint object for safe zone highlighting.
getter/setter pair
graphUnSafeZone Paint
Paint object for unsafe zone highlighting.
getter/setter pair
gridPerMin int
Number of grid lines per minute.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
highlight bool
Highlight mode flag.
getter/setter pair
interpretations Interpretations2?
Interpretation results for the graph.
getter/setter pair
leftOffsetStart double
Left offset start for drawing.
getter/setter pair
mIncrement double
Increment value for each point.
getter/setter pair
mOffset int
Current scroll offset for horizontal panning.
getter/setter pair
mTouchInitialStartIndex int
Initial start index for touch gestures.
getter/setter pair
mTouchMode bool
Touch mode flag.
getter/setter pair
mTouchStart double
Starting x-coordinate for touch gestures.
getter/setter pair
paddingBottom double
Bottom padding for the graph area.
getter/setter pair
paddingRight double
Right padding for the graph area.
getter/setter pair
paddingTop double
Top padding for the graph area.
getter/setter pair
pixelsPerOneCM double
Pixels per centimeter.
getter/setter pair
pixelsPerOneMM double
Pixels per millimeter.
getter/setter pair
pointsPerDiv int
Number of divisions on the y-axis for the TOCO graph.
getter/setter pair
pointsPerPage int
Number of points per page.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleOrigin int
Origin value for scaling.
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.
getter/setter pair
timeScaleFactor int
Scale factor for the time axis
getter/setter pair
topOffsetEnd double
Top offset end for drawing.
getter/setter pair
xAxisLength double
Length of the x-axis.
getter/setter pair
xDiv int
Number of divisions on the x-axis.
getter/setter pair
xDivLength double
Length of each division on the x-axis.
getter/setter pair
xOrigin double
Origin x-coordinate for the graph.
getter/setter pair
xTocoOrigin double
Origin x-coordinate for the TOCO graph.
getter/setter pair
yAxisLength double
Length of the y-axis.
getter/setter pair
yDiv double
Number of divisions on the y-axis.
getter/setter pair
yDivLength double
Length of each division on the y-axis.
getter/setter pair
yOrigin double
Origin y-coordinate for the graph.
getter/setter pair
yTocoDiv double
Number of divisions on the y-axis for the TOCO graph.
getter/setter pair
yTocoEnd double
End y-coordinate for the TOCO graph.
getter/setter pair
yTocoOrigin double
Origin y-coordinate for the 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, {int bpmOffset = 0}) → void
Draws data points and connecting lines for BPM measurements. canvas is the canvas to draw on. list is the list of BPM values. lineStyle is the paint style for the line. bpmOffset is the optional offset for BPM values.
drawGraph(Canvas canvas) → dynamic
Draws the complete graph. canvas is the canvas to draw on.
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.
drawMovements(Canvas canvas) → void
Draws movement markers on the graph. canvas is the canvas to draw on.
drawTocoLine(Canvas canvas, List<int> list, Paint lineStyle) → void
Draws data points and connecting lines for TOCO measurements. canvas is the canvas to draw on. list is the list of TOCO values. lineStyle is the paint style for the line.
drawTocoXAxis(Canvas canvas) → void
Draws the TOCO x-axis with grid lines. canvas is the canvas to draw on.
drawTocoYAxis(Canvas canvas) → void
Draws the TOCO y-axis with grid lines and pressure labels. canvas is the canvas to draw on.
drawXAxis(Canvas canvas) → void
Draws the main x-axis with grid lines and time labels. canvas is the canvas to draw on.
drawYAxis(Canvas canvas) → void
Draws the main y-axis with grid lines and BPM labels. canvas is the canvas to draw on.
getParagraph(String text) Paragraph
Returns a ui.Paragraph object for the given text. text is the text to create the paragraph for. Returns a ui.Paragraph object.
getScreenX(int i) double
Calculates screen x-coordinate from data index. i is the data index. Returns the x-coordinate on the screen.
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. bpm is the BPM value. Returns the y-coordinate on the screen.
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
Initializes graph parameters and dimensions. size is the size of the canvas.
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. canvas is the canvas to draw on. size is the size of the canvas.
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 GraphPainter2 oldDelegate) bool
Determines whether the painter should repaint. oldDelegate is the previous painter instance. Returns true if the painter should repaint, false otherwise.
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