Package com.openhtmltopdf.css.newmatch
Class Matcher
- java.lang.Object
-
- com.openhtmltopdf.css.newmatch.Matcher
-
public class Matcher extends Object
- Author:
- Torbjoern Gannholm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatcher.AllDescendantMapper
-
Constructor Summary
Constructors Constructor Description Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CascadedStylegetCascadedStyle(Object e, boolean restyle)StringgetCSSForAllDescendants(Object e)Returns CSS rulesets for descendants of e.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)
-
-
-
Constructor Detail
-
Matcher
public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
-
-
Method Detail
-
getCascadedStyle
public CascadedStyle getCascadedStyle(Object e, boolean restyle)
-
getCSSForAllDescendants
public String getCSSForAllDescendants(Object e)
Returns CSS rulesets for descendants of e. For example, if e is an svg element and we have the ruleset 'svg rect { .. }' then the string returned will be 'rect { .. }'. FIXME: Does not correctly handle sibling selectors.
-
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)
-
-