if (observer != null) observer.imageUpdate (this, (ImageObserver.WIDTH | ImageObserver.HEIGHT), -1, -1, width, height);
  setDimensions (int width, int height)  {    pixelCache = new int[width*height];    this.width = width;    this.height = height;        for (int i = 0; i < widthObservers.size (); i++)      {	ImageObserver io = (ImageObserver) widthObservers.elementAt (i);	io.imageUpdate (this, ImageObserver.WIDTH, -1, -1, width, height);      }    for (int i = 0; i < heightObservers.size (); i++)      {	ImageObserver io = (ImageObserver) heightObservers.elementAt (i);	io.imageUpdate (this, ImageObserver.HEIGHT, -1, -1, width, height);      }  }