public boolean paintCachedImage(Graphics g,int x,int y,int w,int h,Object... args){
  if (w <= 0 || h <= 0) {
    return true;
  }
  Image img=cache.getImage(getClass(),null,w,h,args);
  if (img != null) {
    g.drawImage(img,x,y,null);
    return true;
  }
  return false;
}

public boolean paintCachedImage ( Graphics g , int x , int y , int w , int h , Object ... args ) { if ( w <= 0 || h <= 0 ) { return true ; } Image img = cache . getImage ( getClass ( ) , null , w , h , args ) ; if ( img != null ) { g . drawImage ( img , x , y , null ) ; return true ; } return false ; }
paint a cached image identified by its size and a set of additional arguments , if there ' s one .
