org.jfree.layouting.layouter.style.resolver
Class DefaultStyleResolver
- StatefullComponent, StyleResolver
public class DefaultStyleResolver
A cascading style resolver. This resolver follows the cascading rules
as outlined by the Cascading Stylesheet Standard.
containsAttrFunction , copyStyleInformation , createAnonymousContext , fillState , getDocumentContext , getInitialStyle , getKeys , getLayoutProcess , getNamespaces , initialize , loadInitialStyle , resolveOutOfContext , resolveValue |
DefaultStyleResolver
public DefaultStyleResolver()
isPseudoElementStyleResolvable
public boolean isPseudoElementStyleResolvable(LayoutElement element,
String pseudo)
Performs tests, whether there is a pseudo-element definition for the given
element. The element itself can be a pseudo-element as well.
- isPseudoElementStyleResolvable in interface StyleResolver
resolveStyle
public void resolveStyle(LayoutElement element)
Resolves the style. This is guaranteed to be called in the order of the
document elements traversing the document tree using the
'deepest-node-first' strategy.
(8% just for the first class calls (not counting the calls comming from
resolveAnonymous (which is another 6%))
- resolveStyle in interface StyleResolver
element
- the elemen that should be resolved.