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

java.lang.Object
  extended byde.dante.extex.typesetter.type.noad.AbstractNoad
      extended byde.dante.extex.typesetter.type.noad.CharNoad
All Implemented Interfaces:
Noad

public class CharNoad
extends AbstractNoad

This class provides a container for a mathematical character.

Version:
$Revision: 1.29 $
Author:
Gerd Neugebauer

Constructor Summary
protected CharNoad(MathGlyph character, TypesettingContext tc)
          Creates a new object.
 
Method Summary
 MathGlyph getChar()
          Getter for the character.
 void toString(java.lang.StringBuffer sb)
          Produce a printable representation of the noad in a StringBuffer.
 void typeset(Noad previousNoad, NoadList noads, int index, NodeList nodes, MathContext mathContext, java.util.logging.Logger logger)
          Translate a Noad into a NodeList.
 void typeset(NodeList nodes, MathContext mathContext, TypesetterOptions context, java.util.logging.Logger logger)
           
 
Methods inherited from class de.dante.extex.typesetter.type.noad.AbstractNoad
getLocalizer, getSpacingClass, getSubscript, getSuperscript, makeScripts, rebox, setSpacingClass, setSubscript, setSuperscript, toString, toString, toStringAdd, toStringSubsidiaray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharNoad

protected CharNoad(MathGlyph character,
                   TypesettingContext tc)
Creates a new object.

Parameters:
character - the character representation
tc - the typesetting context for the color
Method Detail

getChar

public MathGlyph getChar()
Getter for the character.

Returns:
the character.

toString

public void toString(java.lang.StringBuffer sb)
Description copied from interface: Noad
Produce a printable representation of the noad in a StringBuffer.

Specified by:
toString in interface Noad
Overrides:
toString in class AbstractNoad
See Also:
Noad.toString( java.lang.StringBuffer)

typeset

public void typeset(Noad previousNoad,
                    NoadList noads,
                    int index,
                    NodeList nodes,
                    MathContext mathContext,
                    java.util.logging.Logger logger)
             throws TypesetterException,
                    ConfigurationException
Description copied from interface: Noad
Translate a Noad into a NodeList.

Parameters:
previousNoad - the previous noad
noads - the list of noads currently processed
index - the index of the current node in the list
nodes - the list to add the nodes to. This list contains the Nodes previously typeset. Thus it can be used to look back
mathContext - the context to consider
logger - the logger for debugging and tracing information
Throws:
ConfigurationException - in case of a configuration problem
TypesetterException - in case of a problem
See Also:
Noad.typeset( de.dante.extex.typesetter.type.noad.Noad, de.dante.extex.typesetter.type.noad.NoadList, int, de.dante.extex.typesetter.type.NodeList, de.dante.extex.typesetter.type.noad.util.MathContext, java.util.logging.Logger)

typeset

public void typeset(NodeList nodes,
                    MathContext mathContext,
                    TypesetterOptions context,
                    java.util.logging.Logger logger)
             throws ConfigurationException,
                    TypesetterException
Throws:
ConfigurationException
TypesetterException
See Also:
de.dante.extex.typesetter.type.noad.Noad#typeset( de.dante.extex.typesetter.type.NodeList, de.dante.extex.typesetter.type.noad.util.MathContext, de.dante.extex.typesetter.TypesetterOptions)