org.jfree.layouting.layouter.style.resolver

Class SimpleStyleRuleMatcher

public class SimpleStyleRuleMatcher extends Object implements StyleRuleMatcher

A stateless implementation of the style rule matching. This implementation is stateless within the current layout process.

Author: Thomas Morgner

Constructor Summary
SimpleStyleRuleMatcher()
Method Summary
StyleRuleMatcherderiveInstance()
Creates an independent copy of this style rule matcher.
CSSStyleRule[]getMatchingRules(LayoutElement element)
CSSPageRule[]getPageRule(CSSValue pageName, PseudoPage[] pseudoPages)
voidinitialize(LayoutProcess layoutProcess)
booleanisMatchingPseudoElement(LayoutElement element, String pseudo)

Constructor Detail

SimpleStyleRuleMatcher

public SimpleStyleRuleMatcher()

Method Detail

deriveInstance

public StyleRuleMatcher deriveInstance()
Creates an independent copy of this style rule matcher.

Returns: this instance, as this implementation is stateless

getMatchingRules

public CSSStyleRule[] getMatchingRules(LayoutElement element)

getPageRule

public CSSPageRule[] getPageRule(CSSValue pageName, PseudoPage[] pseudoPages)

initialize

public void initialize(LayoutProcess layoutProcess)

isMatchingPseudoElement

public boolean isMatchingPseudoElement(LayoutElement element, String pseudo)