Here you can find the source of drawAt(final Graphics2D g, final double x, final double y, final Shape s)
public static void drawAt(final Graphics2D g, final double x, final double y, final Shape s)
//package com.java2s; import java.awt.Graphics2D; import java.awt.Shape; public class Main { public static void drawAt(final Graphics2D g, final double x, final double y, final Shape s) { g.translate(x, y);/* w w w .j a v a2 s . com*/ g.draw(s); g.translate(-x, -y); } }