Package org.xhtmlrenderer.swing
Class MutableFSImage
java.lang.Object
org.xhtmlrenderer.swing.AWTFSImage
org.xhtmlrenderer.swing.MutableFSImage
- All Implemented Interfaces:
FSImage
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().
-
Nested Class Summary
Nested classes/interfaces inherited from class org.xhtmlrenderer.swing.AWTFSImage
AWTFSImage.NewAWTFSImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedImage
private boolean
private final RepaintListener
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.xhtmlrenderer.swing.AWTFSImage
createImage
-
Field Details
-
img
-
repaintListener
-
loaded
private volatile boolean loaded
-
-
Constructor Details
-
MutableFSImage
-
-
Method Details
-
getImage
- Specified by:
getImage
in classAWTFSImage
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
scale
-
setImage
-
isLoaded
public boolean isLoaded()
-