Package com.openhtmltopdf.extend
Interface ReplacedElementFactory
-
- All Known Implementing Classes:
Java2DReplacedElementFactory
,NoReplacedElementFactory
,PdfBoxReplacedElementFactory
public interface ReplacedElementFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReplacedElement
createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
NOTE: Only block equivalent elements can be replaced.boolean
isReplacedElement(org.w3c.dom.Element e)
-
-
-
Method Detail
-
createReplacedElement
ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
NOTE: Only block equivalent elements can be replaced.- Parameters:
cssWidth
- The CSS width of the element in dots (or-1
if width isauto
)cssHeight
- The CSS height of the element in dots (or-1
if the height should be treated asauto
)- Returns:
- The
ReplacedElement
ornull
if noReplacedElement
applies
-
isReplacedElement
boolean isReplacedElement(org.w3c.dom.Element e)
-
-