Top Constructors Methods
com.openhtmltopdf.simple.extend

public Class NoReplacedElementFactory

extends Object
implements ReplacedElementFactory
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.extend.ReplacedElementFactory
Imports
org.w3c.dom.Element, com.openhtmltopdf.extend.ReplacedElement, .ReplacedElementFactory, .UserAgentCallback, com.openhtmltopdf.layout.LayoutContext, com.openhtmltopdf.render.BlockBox

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ReplacedElement
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
)

Implements com.openhtmltopdf.extend.ReplacedElementFactory.createReplacedElement.

Note

Only block equivalent elements can be replaced.

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NoReplacedElementFactoryback to summary
public NoReplacedElementFactory()

Method Detail

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

Implements com.openhtmltopdf.extend.ReplacedElementFactory.createReplacedElement.

Doc from com.openhtmltopdf.extend.ReplacedElementFactory.createReplacedElement.

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

Annotations
@Override
isReplacedElementback to summary
public boolean isReplacedElement(Element e)

Implements com.openhtmltopdf.extend.ReplacedElementFactory.isReplacedElement.

Annotations
@Override