de.dante.extex.typesetter.type.node.factory
Class CachingUnicodeNodeFactory

java.lang.Object
  extended byde.dante.extex.typesetter.type.node.factory.SimpleNodeFactory
      extended byde.dante.extex.typesetter.type.node.factory.SimpleUnicodeNodeFactory
          extended byde.dante.extex.typesetter.type.node.factory.CachingUnicodeNodeFactory
All Implemented Interfaces:
NodeFactory

public class CachingUnicodeNodeFactory
extends SimpleUnicodeNodeFactory

This is the factory for CharNodes and virtual chars.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Constructor Summary
CachingUnicodeNodeFactory()
          Creates a new object.
 
Method Summary
 Node getNode(TypesettingContext typesettingContext, UnicodeChar uc)
          Create a new instance for the node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingUnicodeNodeFactory

public CachingUnicodeNodeFactory()
Creates a new object.

Method Detail

getNode

public Node getNode(TypesettingContext typesettingContext,
                    UnicodeChar uc)
Create a new instance for the node. If the character is not defined in the font given then null is returned instead.

Specified by:
getNode in interface NodeFactory
Overrides:
getNode in class SimpleUnicodeNodeFactory
Parameters:
typesettingContext - the typographic context for the node
uc - the Unicode character
Returns:
the new character node
See Also:
de.dante.extex.typesetter.type.node.factory.NodeFactory#getNode( de.dante.extex.interpreter.context.TypesettingContext, de.dante.util.UnicodeChar)