org.extex.typesetter.type.node
Class AbstractKernNode
java.lang.Object
org.extex.typesetter.type.node.AbstractNode
org.extex.typesetter.type.node.AbstractKernNode
- All Implemented Interfaces:
- java.io.Serializable, Node, KernNode
- Direct Known Subclasses:
- AccentKernNode, ExplicitKernNode, ImplicitKernNode
public abstract class AbstractKernNode
- extends AbstractNode
- implements KernNode
This class provides the same functionality as
KernNode but is
distinguishable for the sake of some fine differentiations in TeX.
- Version:
- $Revision: 4739 $
- Author:
- Gerd Neugebauer
- See Also:
- Serialized Form
|
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. |
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 |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.extex.typesetter.type.Node |
addDepthTo, addHeightTo, addWidthTo, atShipping, countChars, getChars, getDepth, getHeight, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth |
AbstractKernNode
public AbstractKernNode(FixedDimen kern,
boolean horizontal)
- Creates a new object.
- Parameters:
kern - the natural sizehorizontal - the indicator that the kerning works horizontally
toString
public void toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
- 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 AbstractNode
- Parameters:
sb - the output string bufferprefix - the prefix string inserted at the beginning of each linebreadth - the breadthdepth - the depth- See Also:
- "TeX – The Program [191]",
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 AbstractNode
- Parameters:
sb - the output string bufferprefix - the prefix string inserted at the beginning of each line- See Also:
Node.toText(java.lang.StringBuffer,
java.lang.String)
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)