|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.node.AbstractNode
org.extex.typesetter.type.node.AbstractExpandableNode
org.extex.typesetter.type.node.AbstractLeadersNode
org.extex.typesetter.type.node.ExpandedLeadersNode
public class ExpandedLeadersNode
This node represents an expandable leaders node as used by the primitive \xleaders.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Fields inherited from class org.extex.typesetter.type.node.AbstractNode |
|---|
NO_CHARS |
| Constructor Summary | |
|---|---|
ExpandedLeadersNode(OrientedNode node,
FixedGlue glue)
Creates a new object. |
|
| Method Summary | |
|---|---|
protected Node |
fillHorizontally(long total,
Node node,
FixedDimen posX,
FixedDimen posY)
The method determines how much horizontal space is left and distributes it if necessary. |
protected Node |
fillVertically(long total,
Node node,
FixedDimen posX,
FixedDimen posY)
The method determines how much vertical space is left and distributes it if necessary. |
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.AbstractLeadersNode |
|---|
atShipping, getRepeat, toString |
| Methods inherited from class org.extex.typesetter.type.node.AbstractExpandableNode |
|---|
addDepthTo, addHeightTo, addWidthTo, getSize, isHorizontal, setSize, spreadHeight, spreadWidth |
| 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 |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public ExpandedLeadersNode(OrientedNode node,
FixedGlue glue)
node - the node or node list to stretch or repeatglue - the desired size| Method Detail |
|---|
protected Node fillHorizontally(long total,
Node node,
FixedDimen posX,
FixedDimen posY)
If there is not enough space for at least one instance then the current instance is returned. In this case it acts as placeholder to contribute the dimensions for the update of the current position in the document writer.
Otherwise a hlist is created and filled with appropriately many references to the repeat material. Optionally each elemnt is preceded by a kern node to achieve the proper distribution.
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.
fillHorizontally in class AbstractLeadersNodetotal - 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
AbstractLeadersNode.fillHorizontally(
long, org.extex.typesetter.type.Node,
org.extex.core.dimen.FixedDimen, org.extex.core.dimen.FixedDimen)
protected Node fillVertically(long total,
Node node,
FixedDimen posX,
FixedDimen posY)
If there is not enough space for at least one instance then the current instance is returned. In this case it acts as placeholder to contribute the dimensions for the update of the current position in the document writer.
Otherwise a vlist is created and filled with appropriately many references to the repeat material. Optionally each element is preceded by a kern node to achieve the proper distribution.
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.
fillVertically in class AbstractLeadersNodetotal - 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
AbstractLeadersNode.fillVertically(
long, org.extex.typesetter.type.Node,
org.extex.core.dimen.FixedDimen, org.extex.core.dimen.FixedDimen)
public java.lang.Object visit(NodeVisitor visitor,
java.lang.Object value)
throws GeneralException
visitor - the visitor to applyvalue - the argument for the visitor
GeneralException - in case of an errorNode.visit(
org.extex.typesetter.type.NodeVisitor, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||