|
||||||||||
| 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
public abstract class AbstractLeadersNode
This node represents a leaders node as used by the primitives \leaders, \cleaders, and \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 | |
|---|---|
AbstractLeadersNode(OrientedNode node,
FixedGlue glue)
Creates a new object. |
|
| Method Summary | |
|---|---|
Node |
atShipping(PageContext context,
Typesetter typesetter,
FixedDimen posX,
FixedDimen posY)
This method performs any action which are required to executed at the time of shipping the node to the DocumentWriter. It is a NOOP in the abstract base class and should be overwritten by sub-classes if required. |
protected abstract Node |
fillHorizontally(long total,
Node n,
FixedDimen posX,
FixedDimen posY)
Compute the horizontal list with appropriately many instances of the repeat box. |
protected abstract Node |
fillVertically(long total,
Node n,
FixedDimen posX,
FixedDimen posY)
Compute the vertical list with appropriately many instances of the repeat box. |
Node |
getRepeat()
Getter for the repeated construction. |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
This method puts the printable representation into the string buffer. |
| 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, visit |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public AbstractLeadersNode(OrientedNode node,
FixedGlue glue)
node - the node or node list to stretch or repeat; if the node is
null then it is treated like an empty listglue - the desired size| Method Detail |
|---|
public Node atShipping(PageContext context,
Typesetter typesetter,
FixedDimen posX,
FixedDimen posY)
throws GeneralException
atShipping in interface NodeatShipping in class AbstractNodecontext - the interpreter context encapsulated as page contexttypesetter - the typesetterposX - the horizontal position on the pageposY - the vertical position on the page
null then the node is
deleted. If the value is the node itself then it is preserved.
GeneralException - in case of an errorAbstractNode.atShipping(
org.extex.typesetter.PageContext, org.extex.typesetter.Typesetter,
org.extex.core.dimen.FixedDimen, org.extex.core.dimen.FixedDimen)
protected abstract Node fillHorizontally(long total,
Node n,
FixedDimen posX,
FixedDimen posY)
total - the width in scaled pointsn - 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
protected abstract Node fillVertically(long total,
Node n,
FixedDimen posX,
FixedDimen posY)
total - the total height; i.e. height plus depthn - 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
public Node getRepeat()
public void toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
toString in interface NodetoString in class AbstractNodesb - the output string bufferprefix - the prefix string inserted at the beginning of each linebreadth - the breadthdepth - the depthNode.toString( java.lang.StringBuffer,
java.lang.String, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||