public class NoReplacedElementFactory extends Object implements ReplacedElementFactory
| Constructor and Description |
|---|
NoReplacedElementFactory() |
| Modifier and Type | Method and Description |
|---|---|
ReplacedElement |
createReplacedElement(LayoutContext c,
BlockBox box,
UserAgentCallback uac,
int cssWidth,
int cssHeight)
NOTE: Only block equivalent elements can be replaced.
|
boolean |
isReplacedElement(Element e) |
public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)
ReplacedElementFactorycreateReplacedElement in interface ReplacedElementFactorycssWidth - The CSS width of the element in dots (or -1 if
width is auto)cssHeight - The CSS height of the element in dots (or -1
if the height should be treated as auto)ReplacedElement or null if no
ReplacedElement appliespublic boolean isReplacedElement(Element e)
isReplacedElement in interface ReplacedElementFactoryCopyright © 2018. All rights reserved.