org.extex.typesetter.type.noad
Class MiddleNoad

java.lang.Object
  extended by org.extex.typesetter.type.noad.AbstractNoad
      extended by org.extex.typesetter.type.noad.LeftNoad
          extended by org.extex.typesetter.type.noad.MiddleNoad
All Implemented Interfaces:
Noad

public class MiddleNoad
extends LeftNoad

This Noad carries a delimiter which is set in the middle between math material surrounding it. This delimiter adjusts its height to the height of the surrounding material.

Version:
$Revision: 4739 $
Author:
Gerd Neugebauer

Constructor Summary
MiddleNoad(LeftNoad noadPre, MathDelimiter delimiter, Noad noadPost)
          Creates a new object.
 
Method Summary
 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, Dimen height, Dimen depth)
          Translate a Noad into a NodeList.
 
Methods inherited from class org.extex.typesetter.type.noad.LeftNoad
typeset
 
Methods inherited from class org.extex.typesetter.type.noad.AbstractNoad
getLocalizer, getSpacingClass, getSubscript, getSuperscript, makeScripts, rebox, setSpacingClass, setSubscript, setSuperscript, toString, toString, toString, toStringSubsidiaray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiddleNoad

public MiddleNoad(LeftNoad noadPre,
                  MathDelimiter delimiter,
                  Noad noadPost)
Creates a new object.

Parameters:
noadPre - the material before this noad
delimiter - the delimiter
noadPost - the material after this noad
Method Detail

toStringAdd

public void toStringAdd(java.lang.StringBuffer sb,
                        int depth)
Add some information in the middle of the default toString method.

Overrides:
toStringAdd in class LeftNoad
Parameters:
sb - the target string buffer
depth - the recursion depth
See Also:
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,
                    Dimen height,
                    Dimen depth)
             throws TypesetterException
Translate a Noad into a NodeList.

Overrides:
typeset in class LeftNoad
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 - th logger for debugging
height - the target height. If null then the natural height is used
depth - the target depth. If null then the natural depth is used
Throws:
TypesetterException - in case of a problem
See Also:
LeftNoad.typeset( org.extex.typesetter.type.noad.Noad, org.extex.typesetter.type.noad.NoadList, int, org.extex.typesetter.type.NodeList, org.extex.typesetter.type.noad.util.MathContext, java.util.logging.Logger, org.extex.core.dimen.Dimen, org.extex.core.dimen.Dimen)