org.extex.typesetter.type.node.factory
Class SimpleNodeFactory

java.lang.Object
  extended by org.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: 4739 $
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.
 VirtualCharNode getVirtualCharNode(TypesettingContext typesettingContext, UnicodeChar uc)
          Create a new instance of a virtual character 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:
NodeFactory.getNode( org.extex.typesetter.tc.TypesettingContext, org.extex.core.UnicodeChar)

getVirtualCharNode

public VirtualCharNode getVirtualCharNode(TypesettingContext typesettingContext,
                                          UnicodeChar uc)
Create a new instance of a virtual character node. If the character is not defined in the font given then null is returned instead.

If the character has some special meaning in Unicode then another node might be returned.

Specified by:
getVirtualCharNode in interface NodeFactory
Parameters:
typesettingContext - the typographic context for the node
uc - the Unicode character
Returns:
the new character node
See Also:
NodeFactory.getVirtualCharNode( org.extex.typesetter.tc.TypesettingContext, org.extex.core.UnicodeChar)