Top Methods
com.openhtmltopdf.extend

public Interface ReplacedElementFactory

Known Direct Implementers
com.openhtmltopdf.simple.extend.NoReplacedElementFactory
Imports
com.openhtmltopdf.layout.LayoutContext, com.openhtmltopdf.render.BlockBox, org.w3c.dom.Element

Method Summary

Modifier and TypeMethod and Description
public ReplacedElement

Returns:

The ReplacedElement or null if no ReplacedElement applies
createReplacedElement
(LayoutContext c, BlockBox box, UserAgentCallback uac, int
The CSS width of the element in dots (or -1 if width is auto)
cssWidth
,
int
The CSS height of the element in dots (or -1 if the height should be treated as auto)
cssHeight
)

Note

Only block equivalent elements can be replaced.

public boolean

Method Detail

createReplacedElementback to summary
public ReplacedElement createReplacedElement(LayoutContext c, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight)

Note

Only block equivalent elements can be replaced.

Parameters
cssWidth:int

The CSS width of the element in dots (or -1 if width is auto)

cssHeight:int

The CSS height of the element in dots (or -1 if the height should be treated as auto)

Returns:ReplacedElement

The ReplacedElement or null if no ReplacedElement applies

isReplacedElementback to summary
public boolean isReplacedElement(Element e)