|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeList
This interface describes the features of a linear collection of nodes.
The following picture describes the attributes and relations:
Note that the NodeList does not provide an automatic relation of the contents to the attributes. This means that adding a node does not update width, height, or depth.
| 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. |
void |
clear()
Remove all nodes from the list. |
NodeList |
copy()
Clone the current object. |
Node |
get(int index)
Getter for a node at a given position. |
Dimen |
getMove()
Getter for the move value of the node list. |
Dimen |
getShift()
Getter for the shift value of the node list. |
boolean |
isEmpty()
Test whether the node list is empty. |
java.util.Iterator<Node> |
iterator()
Get a new iterator for all nodes in the list. |
Node |
remove(int index)
Remove an element at a given position. |
void |
setMove(FixedDimen d)
Setter for the move value of the node list. |
void |
setShift(FixedDimen d)
Setter for the shift value of the node list. |
int |
size()
Getter for the number of elements of the list. |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int depth,
int width)
Print the node possibly truncated in breadth and depth. |
java.lang.String |
toText()
Provides a string representation of the current instance. |
| 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, toText, visit |
| Method Detail |
|---|
void add(int index,
Node node)
index - the position of insertionnode - the node to addvoid add(Node node)
node - the node to addvoid addSkip(FixedGlue glue)
glue - the glue to addvoid clear()
NodeList copy()
Node get(int index)
index - the position
null if
index is out of boundsDimen getMove()
Dimen getShift()
boolean isEmpty()
true, if the NodeList is empty,
otherwise false.java.util.Iterator<Node> iterator()
iterator in interface java.lang.Iterable<Node>Node remove(int index)
index - the position
void setMove(FixedDimen d)
d - the move valuevoid setShift(FixedDimen d)
d - the amount to be shiftedint size()
void toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int depth,
int width)
toString in interface Nodesb - the target string bufferprefix - the string inserted at the beginning of each linedepth - the depth limit for the pretty printingwidth - the width limit for the pretty printingjava.lang.String toText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||