Class DeferredImageReplacedElement

java.lang.Object
org.openpdf.swing.ImageReplacedElement
org.openpdf.swing.DeferredImageReplacedElement
All Implemented Interfaces:
ReplacedElement

public class DeferredImageReplacedElement extends ImageReplacedElement
An DeferredImageReplacedElement is a ReplacedElement that contains a Image which by default is simply a transparent image scaled to the size provided to the constructor. The DeferredImageReplacedElement also has a reference to an ImageResource which points to the image which will be returned for this replaced element. That Image may be loaded some time after this DeferredImageReplacedElement is created. Calling getImage() on instances of DeferredImageReplacedElement will return either the original dummy image, or the actual image loaded into the ImageResource.