Package VASSAL.tools.imageop
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 ImageOp.getImage, which which
call back imageOpChange(VASSAL.tools.imageop.ImageOp, boolean) on completion.
The most common implementaion 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 Summary
Modifier and Type Method Description voidimageOpChange(ImageOp op, boolean success)Called when theImageOpunder observation completes.Methods inherited from interface VASSAL.tools.opcache.OpObserver
cancelled, failed, interrupted, succeeded
-
Method Details
-
imageOpChange
Called when theImageOpunder observation completes.- Parameters:
op- theImageOpbeing observedsuccess-trueiff theopsucceeded
-