Class Java2DReplacedElementFactory
java.lang.Object
com.openhtmltopdf.java2d.Java2DReplacedElementFactory
- All Implemented Interfaces:
ReplacedElementFactory
-
Constructor Summary
ConstructorsConstructorDescriptionJava2DReplacedElementFactory(SVGDrawer svgImpl, FSObjectDrawerFactory objectDrawerFactory, SVGDrawer mathMLImpl) -
Method Summary
Modifier and TypeMethodDescriptioncreateReplacedElement(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) NOTE: Only block equivalent elements can be replaced.boolean
-
Constructor Details
-
Java2DReplacedElementFactory
public Java2DReplacedElementFactory(SVGDrawer svgImpl, FSObjectDrawerFactory objectDrawerFactory, SVGDrawer mathMLImpl)
-
-
Method Details
-
createReplacedElement
public ReplacedElement createReplacedElement(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) Description copied from interface:ReplacedElementFactoryNOTE: Only block equivalent elements can be replaced.- Specified by:
createReplacedElementin interfaceReplacedElementFactory- 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
- Specified by:
isReplacedElementin interfaceReplacedElementFactory
-