de.dante.extex.typesetter.type.noad
Class NoadFactory

java.lang.Object
  extended byde.dante.extex.typesetter.type.noad.NoadFactory

public class NoadFactory
extends java.lang.Object

This class is a factory for CharNoades.

Version:
$Revision: 1.11 $
Author:
Gerd Neugebauer

Constructor Summary
NoadFactory()
          Creates a new object.
 
Method Summary
 Noad getNoad(MathClass mathClass, MathGlyph glyph, TypesettingContext tc)
          Provides an instance of a Noad of the appropriate type.
 Noad getNoad(MathCode mc, TypesettingContext tc)
          Provides an instance of a Noad of the appropriate type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoadFactory

public NoadFactory()
Creates a new object.

Method Detail

getNoad

public Noad getNoad(MathCode mc,
                    TypesettingContext tc)
Provides an instance of a Noad of the appropriate type.

Parameters:
mc - the code of the character to use
tc - the typesetting context
Returns:
an instance of a CharNoad

getNoad

public Noad getNoad(MathClass mathClass,
                    MathGlyph glyph,
                    TypesettingContext tc)
Provides an instance of a Noad of the appropriate type.

Parameters:
mathClass - the math class
glyph - the character
tc - the typesetting context
Returns:
an instance of a CharNoad