public void accept(PainterVisitor visitor, Object group, Bbox bounds, boolean recursive) {
		// First place the image at the correct location:
		image.setBounds(new Bbox(getUpperLeftCorner().getX(), getUpperLeftCorner().getY(), getWidth(), getHeight()));

		// Then draw:
		if (parent != null) {
			map.getVectorContext().drawImage(parent, getId(), image.getHref(), image.getBounds(),
					(PictureStyle) image.getStyle());
		} else {
			map.getVectorContext().drawImage(group, getId(), image.getHref(), image.getBounds(),
					(PictureStyle) image.getStyle());
		}
		map.getVectorContext().setCursor(parent, getId(), Cursor.POINTER.getValue());
	}
public void accept ( PainterVisitor visitor , Object group , Bbox bounds , boolean recursive ) { image . setBounds ( new Bbox ( getUpperLeftCorner ( ) . getX ( ) , getUpperLeftCorner ( ) . getY ( ) , getWidth ( ) , getHeight ( ) ) ) ; if ( parent != null ) { map . getVectorContext ( ) . drawImage ( parent , getId ( ) , image . getHref ( ) , image . getBounds ( ) , ( PictureStyle ) image . getStyle ( ) ) ; } else { map . getVectorContext ( ) . drawImage ( group , getId ( ) , image . getHref ( ) , image . getBounds ( ) , ( PictureStyle ) image . getStyle ( ) ) ; } map . getVectorContext ( ) . setCursor ( parent , getId ( ) , Cursor . POINTER . getValue ( ) ) ; }
Paint this pan button!