Package com.openhtmltopdf.render
Class DefaultObjectDrawerFactory
java.lang.Object
com.openhtmltopdf.render.DefaultObjectDrawerFactory
- All Implemented Interfaces:
FSObjectDrawerFactory
public class DefaultObjectDrawerFactory extends Object implements FSObjectDrawerFactory
Default FSObjectDrawer factory, which allows to register drawer for specified
content type
-
Constructor Summary
Constructors Constructor Description DefaultObjectDrawerFactory() -
Method Summary
Modifier and Type Method Description FSObjectDrawercreateDrawer(Element e)Determine an object drawer for the given object tag element.booleanisReplacedObject(Element e)voidregisterDrawer(String contentType, FSObjectDrawer drawer)
-
Constructor Details
-
DefaultObjectDrawerFactory
public DefaultObjectDrawerFactory()
-
-
Method Details
-
createDrawer
Description copied from interface:FSObjectDrawerFactoryDetermine an object drawer for the given object tag element.- Specified by:
createDrawerin interfaceFSObjectDrawerFactory
-
registerDrawer
- Parameters:
contentType- the content type this drawer is fordrawer- Drawer
-
isReplacedObject
- Specified by:
isReplacedObjectin interfaceFSObjectDrawerFactory- Parameters:
e- eleemnt with tag name ofobject.- Returns:
- true if this object drawer can handle this element.
-