org.extex.typesetter.type.node
Class AlignedLeadersNode
java.lang.Object
org.extex.typesetter.type.node.AbstractNode
org.extex.typesetter.type.node.AbstractExpandableNode
org.extex.typesetter.type.node.AbstractLeadersNode
org.extex.typesetter.type.node.AlignedLeadersNode
- All Implemented Interfaces:
- java.io.Serializable, Node, SkipNode, OrientedNode
public class AlignedLeadersNode
- extends AbstractLeadersNode
This node represents an aligned leaders node as used by the primitive
\leaders.
- Version:
- $Revision: 4739 $
- Author:
- Gerd Neugebauer
- See Also:
- "TeX – The Program [149]",
Serialized Form
|
Field Summary |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for
serialization. |
| Methods inherited from class org.extex.typesetter.type.node.AbstractNode |
advanceNaturalDepth, advanceNaturalHeight, advanceNaturalWidth, clone, computeAdjustment, countChars, getChars, getDepth, getHeight, getLocalizer, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, toString, toText, 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, countChars, getChars, getDepth, getHeight, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth, toText |
serialVersionUID
protected static final long serialVersionUID
- The constant serialVersionUID contains the id for
serialization.
- See Also:
- Constant Field Values
AlignedLeadersNode
public AlignedLeadersNode(OrientedNode node,
FixedGlue glue)
- Creates a new object.
- Parameters:
node - the node or node list to stretch or repeatglue - the desired size
fillHorizontally
protected Node fillHorizontally(long total,
Node node,
FixedDimen posX,
FixedDimen posY)
- Compute the horizontal list with appropriately many instances of the
repeat box. If not enough space is left then the leaders node itself is
returned as place holder. Otherwise a hlist is returned.
- Specified by:
fillHorizontally in class AbstractLeadersNode
- Parameters:
total - the width in scaled pointsnode - the repeated nodeposX - the x coordinate of the absolute position of the element on
the pageposY - the y coordinate of the absolute position of the element on
the page
- Returns:
- the appropriate node
- See Also:
- "TeX – The Program [626]",
AbstractLeadersNode.fillHorizontally(
long, org.extex.typesetter.type.Node,
org.extex.core.dimen.FixedDimen, org.extex.core.dimen.FixedDimen)
fillVertically
protected Node fillVertically(long total,
Node node,
FixedDimen posX,
FixedDimen posY)
- Compute the vertical list with appropriately many instances of the repeat
box. If not enough space is left then the leaders node itself is returned
as place holder. Otherwise a vlist is returned.
- Specified by:
fillVertically in class AbstractLeadersNode
- Parameters:
total - the total height; i.e. height plus depthnode - the repeated nodeposX - the x coordinate of the absolute position of the element on
the pageposY - the y coordinate of the absolute position of the element on
the page
- Returns:
- the appropriate node
- See Also:
AbstractLeadersNode.fillVertically(
long, org.extex.typesetter.type.Node,
org.extex.core.dimen.FixedDimen, org.extex.core.dimen.FixedDimen)
visit
public java.lang.Object visit(NodeVisitor visitor,
java.lang.Object value)
throws GeneralException
- This method provides an entry point for the visitor pattern.
- 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)