FhrPdfView class
FhrPdfView is a class responsible for generating and managing the PDF view of the FHR (Fetal Heart Rate) data. It handles the creation of graphs, drawing of lines, and saving images to files.
Constructors
- FhrPdfView(int lengthOfTest)
-
Initializes the FhrPdfView with the given length of the test.
lengthOfTest
is the duration of the test in seconds.
Properties
- auto ↔ bool
-
getter/setter pair
- axisFontSize ↔ double
-
getter/setter pair
-
canvas
↔ List<
Canvas> -
getter/setter pair
- comments ↔ bool
-
getter/setter pair
- graphAxisText ↔ Paint?
-
getter/setter pair
- graphBackGround ↔ Paint?
-
getter/setter pair
- graphBpmLine ↔ Paint?
-
getter/setter pair
- graphGridLines ↔ Paint
-
getter/setter pair
- graphGridSubLines ↔ Paint
-
getter/setter pair
- graphMovement ↔ Paint
-
getter/setter pair
- graphNoiseZone ↔ Paint?
-
getter/setter pair
- graphOutlines ↔ Paint
-
getter/setter pair
- graphSafeZone ↔ Paint?
-
getter/setter pair
- graphUnSafeZone ↔ Paint?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- HEIGHT_PX ↔ int
-
getter/setter pair
- highlight ↔ bool
-
getter/setter pair
-
images
↔ List<
Image> -
getter/setter pair
- informationText ↔ Paint?
-
getter/setter pair
- interpretation ↔ Interpretations2?
-
getter/setter pair
- mData ↔ Test?
-
getter/setter pair
- paddingBottom ↔ double?
-
getter/setter pair
- paddingLeft ↔ double?
-
getter/setter pair
- paddingRight ↔ double?
-
getter/setter pair
- paddingTop ↔ double?
-
getter/setter pair
-
paths
↔ List<
String> ? -
getter/setter pair
- pixelsPerOneCM ↔ double?
-
getter/setter pair
- pixelsPerOneMM ↔ double?
-
getter/setter pair
- pointsPerDiv ↔ int?
-
getter/setter pair
- pointsPerPage ↔ int
-
getter/setter pair
-
recorder
↔ List<
PictureRecorder> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ int?
-
getter/setter pair
- scaleOrigin ↔ int
-
getter/setter pair
- screenHeight ↔ int
-
getter/setter pair
- screenWidth ↔ int
-
getter/setter pair
- timeScaleFactor ↔ int
-
getter/setter pair
- touched_down ↔ double
-
getter/setter pair
- touched_up ↔ double
-
getter/setter pair
- WIDTH_PX ↔ int
-
getter/setter pair
- xAxisLength ↔ double
-
getter/setter pair
- XDIV ↔ int
-
getter/setter pair
- xDiv ↔ int
-
getter/setter pair
- xDivLength ↔ double?
-
getter/setter pair
- xOrigin ↔ double?
-
getter/setter pair
- xTocoOrigin ↔ double?
-
getter/setter pair
- yAxisLength ↔ double?
-
getter/setter pair
- yDiv ↔ double
-
getter/setter pair
- yDivLength ↔ double
-
getter/setter pair
- yOrigin ↔ double
-
getter/setter pair
- yTocoDiv ↔ double
-
getter/setter pair
- yTocoEnd ↔ double
-
getter/setter pair
- yTocoOrigin ↔ double
-
getter/setter pair
Methods
-
displayInformation(
int pageNumber) → void -
Displays information on the graph for the given page number.
pageNumber
is the index of the page to display information on. -
drawAutoMovements(
List< int> ? movementList, int pages) → void -
drawGraph(
int pages) → void -
Draws the graph for the given number of pages.
pages
is the number of pages to draw. -
drawInterpretationAreas(
List< MarkerIndices> ? list, int pages, Paint? style) → void -
Draws the auto movements on the graph for the given list of auto movement entries and pages.
movementList
is the list of auto movement entries.pages
is the number of pages to draw the auto movements on. -
drawLine(
List< int> ? bpmList, int pages, Paint? style) → void -
Draws a line on the graph for the given list of BPM values and pages.
bpmList
is the list of BPM values.pages
is the number of pages to draw the line on.style
is the paint style to use for the line. -
drawMovements(
List< int> ? movementList, int pages) → void -
Draws the movements on the graph for the given list of movement entries and pages.
movementList
is the list of movement entries.pages
is the number of pages to draw the movements on. -
drawTocoLine(
List< int> ? tocoEntries, int pages) → void -
Draws the TOCO line on the graph for the given list of TOCO entries and pages.
tocoEntries
is the list of TOCO entries.pages
is the number of pages to draw the TOCO line on. -
drawTocoXAxis(
int pageNumber) → void -
Draws the X-axis of the TOCO graph for the given page number.
pageNumber
is the index of the page to draw the TOCO X-axis on. -
drawTocoYAxis(
int pageNumber) → void -
Draws the Y-axis of the TOCO graph for the given page number.
pageNumber
is the index of the page to draw the TOCO Y-axis on. -
drawXAxis(
int pageNumber) → void -
Draws the X-axis of the graph for the given page number.
pageNumber
is the index of the page to draw the X-axis on. -
drawYAxis(
int pageNumber) → void -
Draws the Y-axis of the graph for the given page number.
pageNumber
is the index of the page to draw the Y-axis on. -
getNSTGraph(
Test? data, Interpretations2? interpretation) → Future< List< String> ?> -
Generates the NST (Non-Stress Test) graph and returns a list of file paths to the generated images.
data
contains the test data.interpretation
is the interpretation data. Returns a Future that completes with a list of file paths to the generated images. -
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.
-
getParagraphInfo(
String text, {double fontsize = 30}) → Paragraph - Returns a [ui.Paragraph] object for the given text with the specified font size. [text] is the text to create the paragraph for. [fontsize] is the font size to use for the paragraph. Returns a [ui.Paragraph] object.
-
getParagraphLong(
String text, double width, {double fontsize = 30, TextAlign align = TextAlign.left}) → Paragraph - Returns a [ui.Paragraph] object for the given long text with the specified width, font size, and alignment. [text] is the long text to create the paragraph for. [width] is the width of the paragraph. [fontsize] is the font size to use for the paragraph. [align] is the alignment to use for the paragraph. Returns a [ui.Paragraph] object.
-
getScreenX(
int i, int startIndex) → double -
Converts x-position to screen coordinates.
i
is data point index.startIndex
is starting index for current page. Returns x-coordinate on canvas. -
getYValueFromBPM(
int bpm) → double -
Returns the Y-coordinate on the screen for the given TOCO value.
bpm
is the TOCO value. Returns the Y-coordinate on the screen. -
getYValueFromToco(
int bpm) → double - Returns the Y-coordinate on the screen for the given TOCO value. [bpm] is the TOCO value. Returns the Y-coordinate on the screen.
-
initialize(
int lengthOfTest) → void -
Initializes the graph settings based on the length of the test and user preferences.
lengthOfTest
is the duration of the test in seconds. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveImage(
int i) → Future< String> -
Saves the generated image to a file and returns the file path.
i
is the index of the image to save. Returns a Future that completes with the file path of the saved image. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited