Class DefaultCssApplierFactory

java.lang.Object
com.itextpdf.html2pdf.css.apply.impl.DefaultCssApplierFactory
All Implemented Interfaces:
ICssApplierFactory

public class DefaultCssApplierFactory extends Object implements ICssApplierFactory
A factory for creating ICssApplier objects.
  • Constructor Details

  • Method Details

    • getInstance

      public static ICssApplierFactory getInstance()
      Gets DefaultCssApplierFactory instance.
      Returns:
      default instance that is used if custom css appliers are not configured
    • getCssApplier

      public final ICssApplier getCssApplier (com.itextpdf.styledxmlparser.node.IElementNode tag)
      Description copied from interface: ICssApplierFactory
      Returns a ICssApplier instance constructed based on the parameters of a node.
      Specified by:
      getCssApplier in interface ICssApplierFactory
      Parameters:
      tag - a node
      Returns:
      a CSS applier based on the parameters of a node
    • getCustomCssApplier

      public ICssApplier getCustomCssApplier (com.itextpdf.styledxmlparser.node.IElementNode tag)
      Gets a custom CSS applier. This method needs to be overridden because the default CSS applier factory will always return null.
      Parameters:
      tag - the key
      Returns:
      the custom CSS applier