Creates a new Graphics object based on this
Graphics object, but with a new translation and clip area.
The new Graphics object has its origin
translated to the specified point (x, y).
Its clip area is determined by the intersection of the original
clip area with the specified rectangle. The arguments are all
interpreted in the coordinate system of the original
Graphics object. The new graphics context is
identical to the original, except in two respects:
0, 0) in the
new graphics context is the same as (x, y) in
the original graphics context.
0, 0), and its size
is specified by the width and height
arguments.
x | the x coordinate. | |
y | the y coordinate. | |
width | the width of the clipping rectangle. | |
height | the height of the clipping rectangle. |
java.awt.Graphics.translate, java.awt.Graphics.clipRect
Diagram: Graphics