Class DefaultCssApplierFactory
java.lang.Object
com.itextpdf.html2pdf.css.apply.impl.DefaultCssApplierFactory
- All Implemented Interfaces:
-
ICssApplierFactory
A factory for creating
ICssApplier objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ICssAppliergetCssApplier(com.itextpdf.styledxmlparser.node.IElementNode tag) Returns aICssApplierinstance constructed based on the parameters of a node.getCustomCssApplier(com.itextpdf.styledxmlparser.node.IElementNode tag) Gets a custom CSS applier.static ICssApplierFactoryGetsDefaultCssApplierFactoryinstance.
-
Constructor Details
-
DefaultCssApplierFactory
public DefaultCssApplierFactory()Creates a newDefaultCssApplierFactoryinstance.
-
-
Method Details
-
getInstance
GetsDefaultCssApplierFactoryinstance.- Returns:
- default instance that is used if custom css appliers are not configured
-
getCssApplier
Description copied from interface:ICssApplierFactoryReturns aICssApplierinstance constructed based on the parameters of a node.- Specified by:
-
getCssApplierin interfaceICssApplierFactory - Parameters:
-
tag- a node - Returns:
- a CSS applier based on the parameters of a node
-
getCustomCssApplier
Gets a custom CSS applier. This method needs to be overridden because the default CSS applier factory will always returnnull.- Parameters:
-
tag- the key - Returns:
- the custom CSS applier
-