org.jfree.layouting.layouter.style.resolver.computed

Class ConstantsResolveHandler

public abstract class ConstantsResolveHandler extends Object implements ResolveHandler

Creation-Date: 11.12.2005, 23:15:57

Author: Thomas Morgner

Constructor Summary
protected ConstantsResolveHandler()
Method Summary
protected voidaddNormalizeValue(CSSConstant constant)
protected voidaddValue(CSSConstant constant, CSSValue value)
CSSValuegetFallback()
StyleKey[]getRequiredStyles()
This indirectly defines the resolve order.
protected CSSValuelookupValue(CSSConstant value)
voidresolve(LayoutProcess process, LayoutElement currentNode, StyleKey key)
Resolves a single property.
protected CSSValueresolveValue(LayoutProcess process, LayoutElement currentNode, StyleKey key)
protected voidsetFallback(CSSValue fallback)

Constructor Detail

ConstantsResolveHandler

protected ConstantsResolveHandler()

Method Detail

addNormalizeValue

protected void addNormalizeValue(CSSConstant constant)

addValue

protected void addValue(CSSConstant constant, CSSValue value)

getFallback

public CSSValue getFallback()

getRequiredStyles

public StyleKey[] getRequiredStyles()
This indirectly defines the resolve order. The higher the order, the more dependent is the resolver on other resolvers to be complete.

Returns: the array of required style keys.

lookupValue

protected CSSValue lookupValue(CSSConstant value)

resolve

public void resolve(LayoutProcess process, LayoutElement currentNode, StyleKey key)
Resolves a single property.

Parameters: currentNode style

resolveValue

protected CSSValue resolveValue(LayoutProcess process, LayoutElement currentNode, StyleKey key)

setFallback

protected void setFallback(CSSValue fallback)