Java - Image Rotation - How to use this code?

Hi, can someone please tell me how to use this code? I can't seem to get it to work. Can you give like example with values? :

rotate

public abstract void rotate(double theta,

double x,

double y)

Concatenates the current Graphics2D Transform with a translated rotation transform. Subsequent rendering is transformed by a transform which is constructed by translating to the specified location, rotating by the specified radians, and translating back by the same amount as the original translation. This is equivalent to the following sequence of calls:

translate(x, y);

rotate(theta);

translate(-x, -y);

Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis.

Parameters:

theta - the angle of rotation in radians

x - the x coordinate of the origin of the rotation

y - the y coordinate of the origin of the rotation