NOTE: On right-to-left platforms where the coordinate systems are mirrored, special care needs to be taken when mapping coordinates from one control to another to ensure the result is correctly mirrored. Mapping a point that is the origin of a rectangle and then adding the width and height is not equivalent to mapping the rectangle. When one control is mirrored and the other is not, adding the width and height to a point that was mapped causes the rectangle to extend in the wrong direction. Mapping the entire rectangle instead of just one point causes both the origin and the corner of the rectangle to be mapped.
@param from the sourceControl
or null
@param to the destination Control
or null
@param point to be mapped
@return point with mapped coordinates
@exception IllegalArgumentException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|