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

java.lang.Object
  extended byde.dante.extex.typesetter.type.node.factory.SimpleNodeFactory
All Implemented Interfaces:
NodeFactory
Direct Known Subclasses:
CachingNodeFactory, SimpleUnicodeNodeFactory

public class SimpleNodeFactory
extends java.lang.Object
implements NodeFactory

This is a factory for CharNodes and virtual chars.

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer, Michael Niedermair

Constructor Summary
SimpleNodeFactory()
          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

SimpleNodeFactory

public SimpleNodeFactory()
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
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)