public void draw(final Graphics2D graphics2D, final Rectangle2D bounds)
{
final WaitingImageObserver obs = new WaitingImageObserver(image);
obs.waitImageLoaded();
graphics2D.drawImage(image, 0, 0, image.getWidth(null), image.getHeight(null), null);
}
public boolean isKeepAspectRatio()