getScreenPos method
Returns the screen position of physcoord
for this axis relative to the
data area. Accounts for reversed axis and for axis calibrationFactor.
Implementation
int getScreenPos(double physcoord) {
double physval = physcoord;
if (_isReversed) {
// coordinate transformation needed to reverse the axis direction
physval = _coordShift - physval;
}
// convert physical to screen coordinates (must use orig. values!)
int posScreen = physToScreen(physval).round();
return posScreen;
}