|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.typesetter.type.node.AbstractNode
de.dante.extex.typesetter.type.node.GenericNodeList
de.dante.extex.typesetter.type.node.HorizontalListNode
This class provides a container for nodes which is interpreted as horizontal list.
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 | |
HorizontalListNode()
Creates a new object. |
|
HorizontalListNode(FixedDimen width)
Creates a new object. |
|
HorizontalListNode(Node node)
Creates a new object. |
|
HorizontalListNode(Node node1,
Node node2)
Creates a new object. |
Method Summary | |
void |
add(int index,
Node node)
Add a node to the node list at a given position. |
void |
add(Node node)
Add a node to the node list. |
void |
addSkip(FixedGlue glue)
Add some glue to the node list. |
Node |
atShipping(Context context,
Typesetter typesetter,
NodeVisitor visitor,
boolean inHMode)
This method performs any action which are required to executed at the time of shipping the node to the DocumentWriter. |
void |
hpack()
Adjust the variable nodes to achieve a given target width. |
void |
hpack(FixedDimen width)
Adjust the variable nodes to achieve a given target width. |
void |
spreadWidth(FixedDimen w,
FixedGlueComponent sum)
The |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
Print the node possibly truncated in breadth and depth. |
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 de.dante.extex.typesetter.type.node.GenericNodeList |
clear, copy, countChars, empty, get, getChars, getMove, getShift, getTargetDepth, getTargetHeight, getTargetWidth, iterator, remove, setMove, setShift, setTargetDepth, setTargetHeight, setTargetWidth, size, toString, toText |
Methods inherited from class de.dante.extex.typesetter.type.node.AbstractNode |
addDepthTo, addHeightTo, addWidthTo, advanceDepth, advanceHeight, advanceWidth, computeAdjustment, getDepth, getHeight, getLocalizer, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, spreadHeight, 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, getDepth, getHeight, getVerticalSize, getWidth, setDepth, setHeight, setWidth, spreadHeight |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public HorizontalListNode()
public HorizontalListNode(FixedDimen width)
width
- the width of the boxpublic HorizontalListNode(Node node)
node
- the initial node to addpublic HorizontalListNode(Node node1, Node node2)
node1
- the initial nodenode2
- the node to add after node1Method Detail |
public void add(int index, Node node)
NodeList
add
in interface NodeList
add
in class GenericNodeList
de.dante.extex.typesetter.type.node.AbstractNodeList#add(
int,
de.dante.extex.typesetter.type.Node)
public void add(Node node)
NodeList
add
in interface NodeList
add
in class GenericNodeList
de.dante.extex.typesetter.type.node.AbstractNodeList#add(
de.dante.extex.typesetter.type.Node)
public void addSkip(FixedGlue glue)
NodeList
addSkip
in interface NodeList
addSkip
in class GenericNodeList
NodeList.addSkip(
FixedGlue)
public Node atShipping(Context context, Typesetter typesetter, NodeVisitor visitor, boolean inHMode) throws GeneralException
Node
atShipping
in interface Node
atShipping
in class GenericNodeList
GeneralException
de.dante.extex.typesetter.type.node.AbstractNodeList#atShipping(
de.dante.extex.interpreter.context.Context,
de.dante.extex.typesetter.Typesetter,
de.dante.extex.typesetter.type.NodeVisitor,
boolean)
public void hpack()
public void hpack(FixedDimen width)
width
- the new target widthpublic void spreadWidth(FixedDimen w, FixedGlueComponent sum)
spreadWidth
in interface Node
spreadWidth
in class AbstractNode
w
- the desired widthsum
- the total sum of the gluesAbstractNode.spreadWidth(
de.dante.extex.interpreter.type.dimen.FixedDimen,
de.dante.extex.interpreter.type.glue.FixedGlueComponent)
public void toString(java.lang.StringBuffer sb, java.lang.String prefix, int breadth, int depth)
NodeList
toString
in interface NodeList
toString
in class GenericNodeList
Node.toString(java.lang.StringBuffer,
java.lang.String, int, int)
public void toText(java.lang.StringBuffer sb, java.lang.String prefix)
Node
toText
in interface Node
toText
in class GenericNodeList
Node.toText(java.lang.StringBuffer,
java.lang.String)
public java.lang.Object visit(NodeVisitor visitor, java.lang.Object value) throws GeneralException
Node
visit
in interface Node
visit
in class GenericNodeList
GeneralException
Node.visit(
de.dante.extex.typesetter.type.NodeVisitor,
java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |