Package com.openhtmltopdf.simple.extend
Class NoReplacedElementFactory
- java.lang.Object
-
- com.openhtmltopdf.simple.extend.NoReplacedElementFactory
-
- All Implemented Interfaces:
ReplacedElementFactory
public class NoReplacedElementFactory extends java.lang.Object implements ReplacedElementFactory
-
-
Constructor Summary
Constructors Constructor Description NoReplacedElementFactory()
-
Method Summary
All Methods Instance Methods Concrete 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
public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
Description copied from interface:ReplacedElementFactory
NOTE: Only block equivalent elements can be replaced.- Specified by:
createReplacedElement
in interfaceReplacedElementFactory
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
public boolean isReplacedElement(org.w3c.dom.Element e)
- Specified by:
isReplacedElement
in interfaceReplacedElementFactory
-
-