Event.translate

Event.translate

Class Overview | Class Members | This Package | All Packages

Syntax
public void translate( int x, int y )
Parameters
dx
the distance to translate the x coordinate.
dy
the distance to translate the y coordinate.
Description
Translates this event so that its x and y coordinates are increased by dx and dy, respectively.

This method translates an event relative to the given component. This involves, at a minimum, translating the coordinates into the local coordinate system of the given component. It may also involve translating a region in the case of an expose event.