org.jfree.layouting.layouter.style.resolver

Class FlatStyleResolver

public class FlatStyleResolver extends AbstractStyleResolver

Not yet used. Needs to be implemented. Its my fast resolver, but that one needs more thinking and more tweaking.
Constructor Summary
FlatStyleResolver()
Method Summary
StyleResolverderiveInstance()
voidinitialize(LayoutProcess layoutProcess)
booleanisPseudoElementStyleResolvable(LayoutElement element, String pseudo)
Performs tests, whether there is a pseudo-element definition for the given element.
protected voidresolveOutOfContext(LayoutElement element)
LayoutStyleresolvePageStyle(CSSValue pageName, PseudoPage[] pseudoPages, PageAreaType pageArea)
voidresolveStyle(LayoutElement node)
Resolves the style.
StatesaveState()

Constructor Detail

FlatStyleResolver

public FlatStyleResolver()

Method Detail

deriveInstance

public StyleResolver deriveInstance()

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:

resolveOutOfContext

protected void resolveOutOfContext(LayoutElement element)

resolvePageStyle

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

resolveStyle

public void resolveStyle(LayoutElement node)
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: node

saveState

public State saveState()