Package com.openhtmltopdf.swing
Class MutableFSImage
java.lang.Object
com.openhtmltopdf.swing.AWTFSImage
com.openhtmltopdf.swing.MutableFSImage
- All Implemented Interfaces:
FSImage
public class MutableFSImage extends AWTFSImage
An FSImage containing a java.awt.Image which can be replaced at runtime by calling setImage(). When setImage() is
called, the RepaintListener passed to this class in its constructor will have repaintRequested() invoked on the
Swing event dispatch thread. The method isLoaded() will return true once the image load has completed. Before the
image has loaded, a 1x1 transparent pixel will be returned from getImage().
-
Constructor Summary
Constructors Constructor Description MutableFSImage(RepaintListener repaintListener) -
Method Summary
Modifier and Type Method Description intgetHeight()BufferedImagegetImage()intgetWidth()booleanisLoaded()voidscale(int width, int height)voidsetImage(String uri, BufferedImage newImg, boolean wasScaled)