import javax.microedition.lcdui.Graphics;
public class GraphicsWrapper {
   protected Graphics graphics;
   int translateX = 0, translateY = 0;
   ...

   public GraphicsWrapper(Graphics g) {
      graphics = g;
   }

   public void translate(int dx, int dy) {
      translateX = dx;
      translateY = dy;
   }

   public void drawLine(int x1, int y1, int x2, int y2) {
      graphics.drawLine(translateX+x1, translateY+y1, translateX+x2, translateY+y2) ;
   }
   ...
}
