getScreenX method
Converts x-position to screen coordinates.
i
is data point index.
startIndex
is starting index for current page.
Returns x-coordinate on canvas.
Implementation
double getScreenX(int i, int startIndex) {
double increment = (pixelsPerOneMM! / timeScaleFactor);
double k = xOrigin! + increment * 4;
k += increment * (i - (startIndex * pointsPerPage));
return k;
}