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)
-
-
-
Method Detail
-
createDrawer
public FSObjectDrawer createDrawer(Element e)
Description copied from interface:FSObjectDrawerFactoryDetermine an object drawer for the given object tag element.- Specified by:
createDrawerin interfaceFSObjectDrawerFactory
-
registerDrawer
public void registerDrawer(String contentType, FSObjectDrawer drawer)
- Parameters:
contentType- the content type this drawer is fordrawer- Drawer
-
isReplacedObject
public boolean isReplacedObject(Element e)
- Specified by:
isReplacedObjectin interfaceFSObjectDrawerFactory- Parameters:
e- eleemnt with tag name ofobject.- Returns:
- true if this object drawer can handle this element.
-
-