|
||||||||||
| 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.GenericNodeList
public class GenericNodeList
Abstract base class for all NodeLists.
| Field Summary |
|---|
| Fields inherited from class org.extex.typesetter.type.node.AbstractNode |
|---|
NO_CHARS |
| Constructor Summary | |
|---|---|
GenericNodeList()
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. |
void |
clear()
Remove all nodes from the list. |
protected java.lang.Object |
clone()
|
NodeList |
copy()
Clone the current object. |
int |
countChars()
This method determines the number of characters contained in a node. |
Node |
get(int index)
Getter for a node at a given position. |
CharNode[] |
getChars()
Getter for the array of characters enclosed in this node. |
FixedDimen |
getDepth()
Getter for the depth of the node. |
FixedDimen |
getHeight()
Getter for the height of the node. |
Dimen |
getMove()
Getter for the move value of the node list. |
FixedDimen |
getNaturalDepth()
Getter for the natural depth. |
FixedDimen |
getNaturalHeight()
Getter for the natural height. |
Dimen |
getShift()
Getter for the shift value of the node list. |
Dimen |
getTargetDepth()
Getter for targetDepth. |
Dimen |
getTargetHeight()
Getter for targetHeight. |
Dimen |
getTargetWidth()
Getter for targetWidth. |
FixedDimen |
getWidth()
Getter for the width of the node. |
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 |
setDepth(FixedDimen depth)
Setter for the depth of the node. |
void |
setHeight(FixedDimen height)
Setter for the height of the node. |
void |
setMove(FixedDimen d)
Setter for the move value of the node list. |
void |
setNaturalDepth(FixedDimen depth)
Setter for the natural depth. |
void |
setNaturalHeight(FixedDimen height)
Setter for the natural height. |
void |
setNaturalWidth(FixedDimen width)
Setter for the natural width. |
void |
setShift(FixedDimen d)
Setter for the shift value of the node list. |
void |
setTargetDepth(FixedDimen depth)
Setter for the target depth. |
void |
setTargetHeight(FixedDimen height)
Setter for the target height. |
void |
setTargetWidth(FixedDimen width)
Setter for the target width. |
void |
setWidth(FixedDimen width)
Setter for the width of the node. |
int |
size()
Return the size of the NodeList. |
java.lang.String |
toString()
This method returns the printable representation. |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
This method puts the printable representation into the string buffer. This is meant to produce a exhaustive form as it is used in tracing output to the log file. |
java.lang.String |
toText()
Provides a string representation of the current instance. |
void |
toText(java.lang.StringBuffer sb,
java.lang.String prefix)
Puts a text representation of the object into a 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 org.extex.typesetter.type.node.AbstractNode |
|---|
addDepthTo, addHeightTo, addWidthTo, advanceNaturalDepth, advanceNaturalHeight, advanceNaturalWidth, atShipping, computeAdjustment, getLocalizer, getNaturalWidth, getVerticalSize, maxDepth, maxHeight, maxWidth, spreadHeight, spreadWidth, 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, atShipping, getNaturalWidth, getVerticalSize, spreadHeight, spreadWidth |
| Constructor Detail |
|---|
public GenericNodeList()
| Method Detail |
|---|
public void add(int index,
Node node)
add in interface NodeListindex - the position of insertionnode - the node to addNodeList.add(int,
org.extex.typesetter.type.Node)public void add(Node node)
add in interface NodeListnode - the node to addNodeList.add(
org.extex.typesetter.type.Node)public void addSkip(FixedGlue glue)
addSkip in interface NodeListglue - the glue to addNodeList.addSkip(
org.extex.core.glue.FixedGlue)public void clear()
clear in interface NodeListNodeList.clear()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractNodejava.lang.CloneNotSupportedExceptionObject.clone()public NodeList copy()
copy in interface NodeListNodeList.copy()public int countChars()
countChars in interface NodecountChars in class AbstractNodeNode.countChars()public Node get(int index)
get in interface NodeListindex - the position
null if
index is out of boundsNodeList.get(int)public CharNode[] getChars()
getChars in interface NodegetChars in class AbstractNodeNode.getChars()public FixedDimen getDepth()
getDepth in interface NodegetDepth in class AbstractNodeAbstractNode.getDepth()public FixedDimen getHeight()
getHeight in interface NodegetHeight in class AbstractNodeAbstractNode.getHeight()public Dimen getMove()
getMove in interface NodeListNodeList.getMove()public FixedDimen getNaturalDepth()
getNaturalDepth in interface NodegetNaturalDepth in class AbstractNodeNode.getNaturalDepth()public FixedDimen getNaturalHeight()
getNaturalHeight in interface NodegetNaturalHeight in class AbstractNodeNode.getNaturalHeight()public Dimen getShift()
getShift in interface NodeListNodeList.getShift()public Dimen getTargetDepth()
public Dimen getTargetHeight()
public Dimen getTargetWidth()
public FixedDimen getWidth()
getWidth in interface NodegetWidth in class AbstractNodeAbstractNode.getWidth()public boolean isEmpty()
isEmpty in interface NodeListtrue, if the NodeList is empty,
otherwise false.public java.util.Iterator<Node> iterator()
iterator in interface java.lang.Iterable<Node>iterator in interface NodeListNodeList.iterator()public Node remove(int index)
remove in interface NodeListindex - the position
NodeList.remove(int)public void setDepth(FixedDimen depth)
setDepth in interface NodesetDepth in class AbstractNodedepth - the node depthAbstractNode.setDepth(org.extex.core.dimen.FixedDimen)public void setHeight(FixedDimen height)
setHeight in interface NodesetHeight in class AbstractNodeheight - the new heightAbstractNode.setHeight(org.extex.core.dimen.FixedDimen)public void setMove(FixedDimen d)
setMove in interface NodeListd - the move valueNodeList.setMove(
org.extex.core.dimen.FixedDimen)public void setNaturalDepth(FixedDimen depth)
depth - the natural depthAbstractNode.setDepth(
org.extex.core.dimen.FixedDimen)public void setNaturalHeight(FixedDimen height)
height - the natural heightAbstractNode.setHeight(
org.extex.core.dimen.FixedDimen)public void setNaturalWidth(FixedDimen width)
width - the natural widthAbstractNode.setWidth(
org.extex.core.dimen.FixedDimen)public void setShift(FixedDimen d)
setShift in interface NodeListd - the amount to be shiftedNodeList.setShift(
org.extex.core.dimen.FixedDimen)public void setTargetDepth(FixedDimen depth)
depth - the target depth to set.public void setTargetHeight(FixedDimen height)
height - the target height to set.public void setTargetWidth(FixedDimen width)
width - the target width to set.public void setWidth(FixedDimen width)
setWidth in interface NodesetWidth in class AbstractNodewidth - the new widthAbstractNode.setWidth(
org.extex.core.dimen.FixedDimen)public int size()
NodeList.
size in interface NodeListNodeListpublic java.lang.String toString()
toString in class AbstractNodeObject.toString()
public void toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
toString in interface NodetoString in interface NodeListtoString in class AbstractNodesb - the output string bufferprefix - the prefix string inserted at the beginning of each linebreadth - the breadth of the nodes to displaydepth - the depth of the nodes to displayAbstractNode.toString(java.lang.StringBuffer,
java.lang.String, int, int)public java.lang.String toText()
toText in interface NodeList
public void toText(java.lang.StringBuffer sb,
java.lang.String prefix)
toText in interface NodetoText in class AbstractNodesb - the output string bufferprefix - the string prepended to each line of the resulting textNode.toText(java.lang.StringBuffer,
java.lang.String)
public java.lang.Object visit(NodeVisitor visitor,
java.lang.Object value)
throws GeneralException
visit in interface Nodevisitor - 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 | |||||||||