org.jfree.layouting.layouter.style.resolver.computed.content
Class XAlternateTextResolveHandler

java.lang.Object
  extended by org.jfree.layouting.layouter.style.resolver.computed.content.XAlternateTextResolveHandler
All Implemented Interfaces:
ResolveHandler

public class XAlternateTextResolveHandler
extends java.lang.Object
implements ResolveHandler


Constructor Summary
XAlternateTextResolveHandler()
           
 
Method Summary
 StyleKey[] getRequiredStyles()
          This indirectly defines the resolve order.
 void resolve(LayoutProcess process, LayoutElement element, StyleKey key)
          Resolves a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAlternateTextResolveHandler

public XAlternateTextResolveHandler()
Method Detail

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.

Specified by:
getRequiredStyles in interface ResolveHandler
Returns:
the array of required style keys.

resolve

public void resolve(LayoutProcess process,
                    LayoutElement element,
                    StyleKey key)
Resolves a String. As the string may contain the 'contents' property, it is not resolvable here. The ContentNormalizer needs to handle this property instead. (But this code prepares everything ..)

Specified by:
resolve in interface ResolveHandler
Parameters:
currentNode -
style -