public double toScreenX ( double x ) { Point2D src = srcPnt . get ( ) ; Point2D dst = dstPnt . get ( ) ; src . setLocation ( x , 0 ) ; combinedTransform . transform ( src , dst ) ; return dst . getX ( ) ; //return scaleX * x + xOff; }
Translates cartesian x - coordinate to screen coordinate .