Package com.openhtmltopdf.css.newmatch
Class Matcher
- java.lang.Object
-
- com.openhtmltopdf.css.newmatch.Matcher
-
public class Matcher extends Object
- Author:
- Torbjoern Gannholm
-
-
Constructor Summary
Constructors Constructor Description Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
Method Summary
Modifier and Type Method Description CascadedStylegetCascadedStyle(Object e, boolean restyle)List<FontFaceRule>getFontFaceRules()PageInfogetPageCascadedStyle(String pageName, String pseudoPage)CascadedStylegetPECascadedStyle(Object e, String pseudoElement)May return null.booleanisActiveStyled(Object e)booleanisFocusStyled(Object e)booleanisHoverStyled(Object e)booleanisVisitedStyled(Object e)protected com.openhtmltopdf.css.newmatch.Matcher.MappermatchElement(Object e)voidremoveStyle(Object e)
-
-
-
Constructor Detail
-
Matcher
public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
-
Method Detail
-
removeStyle
public void removeStyle(Object e)
-
getCascadedStyle
public CascadedStyle getCascadedStyle(Object e, boolean restyle)
-
getPECascadedStyle
public CascadedStyle getPECascadedStyle(Object e, String pseudoElement)
May return null. We assume that restyle has already been done by a getCascadedStyle if necessary.
-
getFontFaceRules
public List<FontFaceRule> getFontFaceRules()
-
isVisitedStyled
public boolean isVisitedStyled(Object e)
-
isHoverStyled
public boolean isHoverStyled(Object e)
-
isActiveStyled
public boolean isActiveStyled(Object e)
-
isFocusStyled
public boolean isFocusStyled(Object e)
-
matchElement
protected com.openhtmltopdf.css.newmatch.Matcher.Mapper matchElement(Object e)
-
-