org.extex.typesetter.type.node
Class AfterMathNode
java.lang.Object
org.extex.typesetter.type.node.AbstractNode
org.extex.typesetter.type.node.AfterMathNode
- All Implemented Interfaces:
- java.io.Serializable, 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.
- Version:
- $Revision: 4739 $
- Author:
- 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. |
|
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 org.extex.typesetter.type.node.AbstractNode |
addDepthTo, addHeightTo, addWidthTo, advanceNaturalDepth, advanceNaturalHeight, advanceNaturalWidth, atShipping, clone, computeAdjustment, countChars, getChars, getDepth, getHeight, getLocalizer, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth, toString, toText, toText |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
protected static final long serialVersionUID
- The constant serialVersionUID contains the id for serialization.
- See Also:
- Constant Field Values
AfterMathNode
public AfterMathNode(FixedDimen mathsurround)
- Creates a new object.
- Parameters:
mathsurround - the width to add after the math
toString
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- Overrides:
toString in class AbstractNode
- Parameters:
sb - the target bufferprefix - the prefix for each new linebreadth - the breadthdepth - the depth- See Also:
- "TeX – The Program [192]",
Node.toString(
java.lang.StringBuffer,
java.lang.String,
int,
int)
visit
public java.lang.Object visit(NodeVisitor visitor,
java.lang.Object value)
throws GeneralException
- This method provides an entry point for the visitor pattern.
- Specified by:
visit in interface Node
- Parameters:
visitor - the visitor to applyvalue - the argument for the visitor
- Returns:
- the result of the method invocation of the visitor
- Throws:
GeneralException - in case of an error- See Also:
Node.visit(
org.extex.typesetter.type.NodeVisitor,
java.lang.Object)