org.jfree.layouting.layouter.style.resolver

Interface StyleResolver

public interface StyleResolver extends StatefullComponent

Creation-Date: 05.12.2005, 18:03:52

Author: Thomas Morgner

Method Summary
LayoutContextcreateAnonymousContext(ContextId id, LayoutContext parent)
StyleResolverderiveInstance()
LayoutStylegetInitialStyle()
voidinitialize(LayoutProcess layoutProcess)
booleanisPseudoElementStyleResolvable(LayoutElement element, String pseudo)
Performs tests, whether there is a pseudo-element definition for the given element.
LayoutStyleresolvePageStyle(CSSValue pageName, PseudoPage[] pseudoPages, PageAreaType pageArea)
voidresolveStyle(LayoutElement element)
Resolves the style.

Method Detail

createAnonymousContext

public LayoutContext createAnonymousContext(ContextId id, LayoutContext parent)

deriveInstance

public StyleResolver deriveInstance()

getInitialStyle

public LayoutStyle getInitialStyle()

initialize

public void initialize(LayoutProcess layoutProcess)

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.

Parameters: element pseudo

Returns:

resolvePageStyle

public LayoutStyle resolvePageStyle(CSSValue pageName, PseudoPage[] pseudoPages, PageAreaType pageArea)

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.

Parameters: element