Graphics.translate
Class Overview | Class Members |
This Package |
All Packages
public abstract void translate( int x,
int y )
Parameters
- x
- the x coordinate.
- y
- the y coordinate.
Description
Translates the origin of the graphics context to the point
(x, y) in the current coordinate system.
Modifies this graphics context so that its new origin corresponds
to the point (x, y) in this graphics context's
original coordinate system. All coordinates used in subsequent
rendering operations on this graphics context will be relative
to this new origin.