Graphics.translate

Graphics.translate

Class Overview | Class Members | This Package | All Packages

Syntax
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 (xy) in the current coordinate system. Modifies this graphics context so that its new origin corresponds to the point (xy) 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.