public class Matcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Matcher.AllDescendantMapper |
| Modifier and Type | Field and Description |
|---|---|
static int |
HIDE_ON_FIRST_FRAGMENT |
static int |
HIDE_ON_LAST_FRAGMENT |
| Constructor and Description |
|---|
Matcher(TreeResolver tr,
AttributeResolver ar,
StylesheetFactory factory,
List<Stylesheet> stylesheets,
String medium) |
| Modifier and Type | Method and Description |
|---|---|
CascadedStyle |
getCascadedStyle(Object e,
boolean restyle) |
String |
getCSSForAllDescendants(Object e)
Returns CSS rulesets for descendants of e.
|
List<FontFaceRule> |
getFontFaceRules() |
int |
getFragmentHide(Object e)
Paint-time hide flags for the fragment pseudo-classes: a bitmask of
HIDE_ON_FIRST_FRAGMENT / HIDE_ON_LAST_FRAGMENT, or 0. |
PageInfo |
getPageCascadedStyle(String pageName,
String pseudoPage) |
CascadedStyle |
getPECascadedStyle(Object e,
String pseudoElement)
May return null.
|
boolean |
isActiveStyled(Object e) |
boolean |
isFocusStyled(Object e) |
boolean |
isHoverStyled(Object e) |
boolean |
isMarkerStyled(Object e) |
boolean |
isVisitedStyled(Object e) |
protected com.openhtmltopdf.css.newmatch.Matcher.Mapper |
matchElement(Object e) |
public static final int HIDE_ON_FIRST_FRAGMENT
public static final int HIDE_ON_LAST_FRAGMENT
public Matcher(TreeResolver tr, AttributeResolver ar, StylesheetFactory factory, List<Stylesheet> stylesheets, String medium)
public CascadedStyle getCascadedStyle(Object e, boolean restyle)
public String getCSSForAllDescendants(Object e)
public CascadedStyle getPECascadedStyle(Object e, String pseudoElement)
public List<FontFaceRule> getFontFaceRules()
public boolean isVisitedStyled(Object e)
public boolean isHoverStyled(Object e)
public boolean isActiveStyled(Object e)
public boolean isFocusStyled(Object e)
public boolean isMarkerStyled(Object e)
public int getFragmentHide(Object e)
HIDE_ON_FIRST_FRAGMENT / HIDE_ON_LAST_FRAGMENT, or 0.protected com.openhtmltopdf.css.newmatch.Matcher.Mapper matchElement(Object e)
Copyright © 2004–2026. All rights reserved.