Class CssPageMarginBoxSelector

java.lang.Object
com.itextpdf.styledxmlparser.css.selector.CssPageMarginBoxSelector
All Implemented Interfaces:
ICssSelector

public class CssPageMarginBoxSelector extends Object implements ICssSelector
ICssSelector implementation for CSS page margin box selectors.
  • Constructor Details

    • CssPageMarginBoxSelector

      public CssPageMarginBoxSelector (String pageMarginBoxName, ICssSelector pageSelector)
      Creates a new CssPageMarginBoxSelector instance.
      Parameters:
      pageMarginBoxName - the page margin box name
      pageSelector - the page selector
  • Method Details

    • calculateSpecificity

      public int calculateSpecificity()
      Description copied from interface: ICssSelector
      Calculates the specificity.
      Specified by:
      calculateSpecificity in interface ICssSelector
      Returns:
      the specificity
    • matches

      public boolean matches (INode node)
      Description copied from interface: ICssSelector
      Checks if a node matches the selector.
      Specified by:
      matches in interface ICssSelector
      Parameters:
      node - the node
      Returns:
      true, if the selector is a match for the node