protected void updateImage(Rectangle r) { updateImage(r.x,r.y,r.width,r.height);
protected synchronized void updateImage(int x, int y , int width, int height) { if (gg2d == null) {  gg2d = (Graphics2D)gui.getGraphics(); }   if (gui.rubberband != null && gui.rubberband.isAreaSelected()) { gui.rubberband.erase(); }  if (bi == null || gg2d == null) { if (bi == null) System.out.println("bi was null in update image"); if (gg2d == null) System.out.println("gg2d was null in update image"); return; }  g2d.setClip(x,y,width,height); if (!cursorActive && x + width <= bi.getWidth(null) && y + height <= (bi.getHeight(null) - fmWidth)) { paintComponent2(g2d); }                  if (gui.rubberband != null && gui.rubberband.isAreaSelected()) { gui.rubberband.draw(); }                  if (x == 0) width += bi.offLeft; else x += bi.offLeft; if (y == 0) height += bi.offTop; else y += bi.offTop; gui.repaint(x,y,width, height);
   protected void updateImage(Rectangle r) {      updateImage(r.x,r.y,r.width,r.height);   }