org.jfree.layouting.layouter.style.resolver
Class FlatStyleResolver

java.lang.Object
  extended by org.jfree.layouting.layouter.style.resolver.AbstractStyleResolver
      extended by org.jfree.layouting.layouter.style.resolver.FlatStyleResolver
All Implemented Interfaces:
StyleResolver, StatefullComponent

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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jfree.layouting.layouter.style.resolver.AbstractStyleResolver
AbstractStyleResolver.AbstractStyleResolverState
 
Constructor Summary
FlatStyleResolver()
           
 
Method Summary
 StyleResolver deriveInstance()
           
 void initialize(LayoutProcess layoutProcess)
           
 boolean isPseudoElementStyleResolvable(LayoutElement element, java.lang.String pseudo)
          Performs tests, whether there is a pseudo-element definition for the given element.
protected  void resolveOutOfContext(LayoutElement element)
           
 LayoutStyle resolvePageStyle(CSSValue pageName, PseudoPage[] pseudoPages, PageAreaType pageArea)
           
 void resolveStyle(LayoutElement node)
          Resolves the style.
 State saveState()
           
 
Methods inherited from class org.jfree.layouting.layouter.style.resolver.AbstractStyleResolver
containsAttrFunction, copyStyleInformation, createAnonymousContext, fillState, getDocumentContext, getInitialStyle, getKeys, getLayoutProcess, getNamespaces, loadInitialStyle, resolveValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatStyleResolver

public FlatStyleResolver()
Method Detail

deriveInstance

public StyleResolver deriveInstance()

initialize

public void initialize(LayoutProcess layoutProcess)
Specified by:
initialize in interface StyleResolver
Overrides:
initialize in class AbstractStyleResolver

resolveOutOfContext

protected void resolveOutOfContext(LayoutElement element)
Specified by:
resolveOutOfContext in class AbstractStyleResolver

resolvePageStyle

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

isPseudoElementStyleResolvable

public boolean isPseudoElementStyleResolvable(LayoutElement element,
                                              java.lang.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:

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()
                throws StateException
Throws:
StateException