Interface ImageOpObserver

All Superinterfaces:
OpObserver<BufferedImage>
All Known Implementing Classes:
Repainter

public interface ImageOpObserver extends OpObserver<BufferedImage>
ImageOpObservers can be notified on the completion of an ImageOp.

Objects implementing ImageOpObserver are intended to be passed as an argument to {link ImageOp.getImage}, which which call back imageOpChange(VASSAL.tools.imageop.ImageOp, boolean) on completion.

The most common implementation of this interface is Repainter, which can be used to repaint portions of Components which are waiting for images to be computed.

Since:
3.1.0
Author:
Joel Uckelman
See Also:
Repainter
  • Method Details

    • imageOpChange

      void imageOpChange(ImageOp op, boolean success)
      Called when the ImageOp under observation completes.
      Parameters:
      op - the ImageOp being observed
      success - true iff the op succeeded