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

java.lang.Object
  extended byde.dante.extex.typesetter.type.noad.AbstractNoad
      extended byde.dante.extex.typesetter.type.noad.AbstractNucleusNoad
          extended byde.dante.extex.typesetter.type.noad.OrdinaryNoad
All Implemented Interfaces:
Noad, SimpleNoad

public class OrdinaryNoad
extends AbstractNucleusNoad
implements SimpleNoad

This Noad represents an ordinary character.

Version:
$Revision: 1.17 $
Author:
Gerd Neugebauer
See Also:
"TTP [682]"

Constructor Summary
OrdinaryNoad(Noad nucleus, TypesettingContext tc)
          Creates a new object.
 
Method Summary
static int make_ord(NoadList noads, int index, NodeList list, MathContext mathContext, java.util.logging.Logger logger)
          Translate an OrdNoad into a NodeList.
protected  void toStringAdd(java.lang.StringBuffer sb, int depth)
          Add some information in the middle of the default toString method.
 void typeset(Noad previousNoad, NoadList noads, int index, NodeList list, MathContext mathContext, java.util.logging.Logger logger)
          Translate a Noad into a NodeList.
 
Methods inherited from class de.dante.extex.typesetter.type.noad.AbstractNucleusNoad
getColor, getNucleus, getTypesettingContext, toString
 
Methods inherited from class de.dante.extex.typesetter.type.noad.AbstractNoad
getLocalizer, getSpacingClass, getSubscript, getSuperscript, makeScripts, rebox, setSpacingClass, setSubscript, setSuperscript, toString, toString, toStringSubsidiaray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrdinaryNoad

public OrdinaryNoad(Noad nucleus,
                    TypesettingContext tc)
Creates a new object.

Parameters:
nucleus - the nucleus
tc - the typesetting context for the color
Method Detail

toStringAdd

protected void toStringAdd(java.lang.StringBuffer sb,
                           int depth)
Description copied from class: AbstractNoad
Add some information in the middle of the default toString method.

Overrides:
toStringAdd in class AbstractNoad
Parameters:
sb - the target string buffer
depth - the recursion depth
See Also:
"TTP [696]", AbstractNoad.toStringAdd( java.lang.StringBuffer, int)

typeset

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

Specified by:
typeset in interface Noad
Parameters:
previousNoad - the previous noad
noads - the list of noads currently processed
index - the index of the current node in the list
list - 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:
"TTP [752]", 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)

make_ord

public static final int make_ord(NoadList noads,
                                 int index,
                                 NodeList list,
                                 MathContext mathContext,
                                 java.util.logging.Logger logger)
Translate an OrdNoad into a NodeList.

Parameters:
noads - the list of noads currently processed
index - the index of the current node in the list
list - 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
Returns:
the index of the next noad to consider