org.extex.typesetter.type.noad
Class NodeNoad

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

public class NodeNoad
extends java.lang.Object
implements Noad

This noad contains a node which is passed through the math apparatus.

Version:
$Revision: 4739 $
Author:
Gerd Neugebauer

Constructor Summary
NodeNoad(Node node)
          Creates a new object.
 
Method Summary
 MathSpacing getSpacingClass()
          Getter for spacing class.
 Noad getSubscript()
          Getter for the subscript.
 Noad getSuperscript()
          Getter for the superscript.
 void setSpacingClass(MathSpacing spacingClass)
          Setter for spacing class.
 void setSubscript(Noad subscript)
          Setter for the subscript.
 void setSuperscript(Noad superscript)
          Setter for the superscript.
 void toString(java.lang.StringBuffer sb)
          Produce a printable representation of the noad in a StringBuffer.
 void toString(java.lang.StringBuffer sb, int depth)
          Produce a printable representation to a certain depth of the noad.
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeNoad

public NodeNoad(Node node)
Creates a new object.

Parameters:
node - the node to
Method Detail

getSpacingClass

public MathSpacing getSpacingClass()
Getter for spacing class.

Specified by:
getSpacingClass in interface Noad
Returns:
the spacing class
See Also:
Noad.getSpacingClass()

getSubscript

public Noad getSubscript()
Getter for the subscript.

Specified by:
getSubscript in interface Noad
Returns:
the subscript.
See Also:
Noad.getSubscript()

getSuperscript

public Noad getSuperscript()
Getter for the superscript.

Specified by:
getSuperscript in interface Noad
Returns:
the superscript.
See Also:
Noad.getSuperscript()

setSpacingClass

public void setSpacingClass(MathSpacing spacingClass)
Setter for spacing class.

Specified by:
setSpacingClass in interface Noad
Parameters:
spacingClass - the spacing class to set
See Also:
Noad.setSpacingClass( org.extex.typesetter.type.noad.util.MathSpacing)

setSubscript

public void setSubscript(Noad subscript)
Setter for the subscript. This operation is not supported and leads to an exception.

Specified by:
setSubscript in interface Noad
Parameters:
subscript - the subscript to set.
See Also:
Noad.setSubscript( org.extex.typesetter.type.noad.Noad)

setSuperscript

public void setSuperscript(Noad superscript)
Setter for the superscript. This operation is not supported and leads to an exception.

Specified by:
setSuperscript in interface Noad
Parameters:
superscript - the superscript to set.
See Also:
Noad.setSuperscript( org.extex.typesetter.type.noad.Noad)

toString

public void toString(java.lang.StringBuffer sb)
Produce a printable representation of the noad in a StringBuffer.

Specified by:
toString in interface Noad
Parameters:
sb - the string buffer
See Also:
Noad.toString( java.lang.StringBuffer)

toString

public void toString(java.lang.StringBuffer sb,
                     int depth)
Produce a printable representation to a certain depth of the noad.

Specified by:
toString in interface Noad
Parameters:
sb - the string buffer
depth - the depth to which the full information should be given
See Also:
Noad.toString( 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
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:
TypesetterException - in case of a problem
ConfigurationException - in case of a configuration problem
See Also:
Noad.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)