Class AfterMathNode

  extended byde.dante.extex.typesetter.type.node.AbstractNode
      extended byde.dante.extex.typesetter.type.node.AfterMathNode
All Implemented Interfaces:
Discardable, Node,

public class AfterMathNode
extends AbstractNode
implements Discardable

This node represents a TeX "math" node with the subtype "after".

For the document writer it acts like a glue or kerning node. The width contains the distance to add.

$Revision: 1.14 $
Gerd Neugebauer, Michael Niedermair
See Also:
"TeX – The Program [147]", Serialized Form

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
Fields inherited from class de.dante.extex.typesetter.type.node.AbstractNode
Constructor Summary
AfterMathNode(FixedDimen mathsurround)
          Creates a new object.
Method Summary
 void toString(java.lang.StringBuffer sb, java.lang.String prefix, int breadth, int depth)
          This method returns the printable representation.
 java.lang.Object visit(NodeVisitor visitor, java.lang.Object value)
          This method provides an entry point for the visitor pattern.
Methods inherited from class de.dante.extex.typesetter.type.node.AbstractNode
addDepthTo, addHeightTo, addWidthTo, advanceDepth, advanceHeight, advanceWidth, atShipping, computeAdjustment, countChars, getChars, getDepth, getHeight, getLocalizer, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth, toString, toText, toText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail


public AfterMathNode(FixedDimen mathsurround)
Creates a new object.

mathsurround - the width to add after the math
Method Detail


public void toString(java.lang.StringBuffer sb,
                     java.lang.String prefix,
                     int breadth,
                     int depth)
This method returns the printable representation. This is meant to produce a exhaustive form as it is used in tracing output to the log file.

Specified by:
toString in interface Node
toString in class AbstractNode
sb - the target buffer
prefix - the prefix for each new line
breadth - the breadth
depth - the depth
See Also:
"TeX – The Program [192]", Node.toString( java.lang.StringBuffer, java.lang.String, int, int)


public java.lang.Object visit(NodeVisitor visitor,
                              java.lang.Object value)
                       throws GeneralException
Description copied from interface: Node
This method provides an entry point for the visitor pattern.

Specified by:
visit in interface Node
visitor - the visitor to apply
value - the argument for the visitor
the result of the method invocation of the visitor
GeneralException - in case of an error
See Also:
Node.visit( de.dante.extex.typesetter.type.NodeVisitor, java.lang.Object)