Package com.openhtmltopdf.extend
Interface ReplacedElementFactory
-
- All Known Implementing Classes:
NoReplacedElementFactory,SwingReplacedElementFactory
public interface ReplacedElementFactory
-
-
Method Summary
Modifier and Type Method Description ReplacedElementcreateReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)NOTE: Only block equivalent elements can be replaced.booleanisReplacedElement(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-1if width isauto)cssHeight- The CSS height of the element in dots (or-1if the height should be treated asauto)- Returns:
- The
ReplacedElementornullif noReplacedElementapplies
-
isReplacedElement
boolean isReplacedElement(Element e)
-
-