de.dante.extex.typesetter.type.node
Class ExplicitKernNode

java.lang.Object
  extended byde.dante.extex.typesetter.type.node.AbstractNode
      extended byde.dante.extex.typesetter.type.node.AbstractKernNode
          extended byde.dante.extex.typesetter.type.node.ExplicitKernNode
All Implemented Interfaces:
Discardable, KernNode, Node, java.io.Serializable

public class ExplicitKernNode
extends AbstractKernNode
implements Discardable

This class represents an explicit kerning node for the typesetter. From The TeXbook

A kern_node has a width field to specify a (normally negative) amount of spacing. This spacing correction appears in horizontal lists between letters like A and V when the font designer said that it looks better to move them closer together or further apart. A kern node can also appear in a vertical list, when its `width' denotes additional spacing in the vertical direction.

Version:
$Revision: 1.11 $
Author:
Gerd Neugebauer, Michael Niedermair
See Also:
"TeX – The Program [155]", ImplicitKernNode, 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
NO_CHARS
 
Constructor Summary
ExplicitKernNode(FixedDimen kern, boolean horizontal)
          Creates a new object.
 
Method Summary
 void toString(java.lang.StringBuffer sb, java.lang.String prefix, int breadth, int depth)
          This method puts the printable representation into the string buffer.
 void toText(java.lang.StringBuffer sb, java.lang.String prefix)
          This method puts the printable representation into the string buffer.
 
Methods inherited from class de.dante.extex.typesetter.type.node.AbstractKernNode
visit
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.dante.extex.typesetter.type.Node
addDepthTo, addHeightTo, addWidthTo, atShipping, countChars, getChars, getDepth, getHeight, getVerticalSize, getWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth
 

Field Detail

serialVersionUID

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

See Also:
Constant Field Values
Constructor Detail

ExplicitKernNode

public ExplicitKernNode(FixedDimen kern,
                        boolean horizontal)
Creates a new object.

Parameters:
kern - the natural size
horizontal - the indicator that the kern works horizontally
See Also:
"TeX – The Program [156]"
Method Detail

toString

public void toString(java.lang.StringBuffer sb,
                     java.lang.String prefix,
                     int breadth,
                     int depth)
Description copied from class: AbstractKernNode
This method puts the printable representation into the string buffer. This is meant to produce a short form only as it is used in error messages to the user.

Specified by:
toString in interface Node
Overrides:
toString in class AbstractKernNode
Parameters:
sb - the output string buffer
prefix - the prefix string inserted at the beginning of each line
breadth - the breadth
depth - the depth
See Also:
Node.toString( java.lang.StringBuffer, java.lang.String, int, int)

toText

public void toText(java.lang.StringBuffer sb,
                   java.lang.String prefix)
This method puts the printable representation into the string buffer. This is meant to produce a short form only as it is used in error messages to the user.

Specified by:
toText in interface Node
Overrides:
toText in class AbstractKernNode
Parameters:
sb - the output string buffer
prefix - the prefix string inserted at the beginning of each line
See Also:
"TeX – The Program [191]", Node.toText( java.lang.StringBuffer, java.lang.String)