|
||||||||||
| 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
org.extex.typesetter.type.node.VerticalListNode
public class VerticalListNode
This class provides an implementation for a vertical list.
| 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 | |
|---|---|
VerticalListNode()
Creates a new empty list. |
|
VerticalListNode(Node node)
Creates a new list with a node in it. |
|
| 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. |
protected java.lang.Object |
clone()
|
boolean |
isHorizontal()
Check whether this node is in horizontal mode. |
boolean |
isTop()
Getter for top. |
Node |
remove(int index)
Remove an element at a given position. |
void |
setTop(boolean top)
Setter for top. |
VerticalListNode |
split(FixedDimen height,
java.util.logging.Logger logger,
java.util.logging.Logger traceLogger)
Split-off material from a vertical list of a desired height. |
long |
spread(FixedDimen height)
Spread the list vertically to a desired size by distributing the differences to the glues contained. |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
This method puts the printable representation into the string buffer. |
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. |
long |
vpack(FixedDimen targetHeight)
Adjust the variable nodes to achieve a given target height. |
| Methods inherited from class org.extex.typesetter.type.node.GenericNodeList |
|---|
clear, copy, countChars, get, getChars, getDepth, getHeight, getMove, getNaturalDepth, getNaturalHeight, getShift, getTargetDepth, getTargetHeight, getTargetWidth, getWidth, isEmpty, iterator, setDepth, setHeight, setMove, setNaturalDepth, setNaturalHeight, setNaturalWidth, setShift, setTargetDepth, setTargetHeight, setTargetWidth, setWidth, size, toString, toText |
| 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.NodeList |
|---|
clear, copy, get, getMove, getShift, isEmpty, iterator, setMove, setShift, size, toText |
| 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 |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public VerticalListNode()
public VerticalListNode(Node node)
node - the initial node| Method Detail |
|---|
public void add(int index,
Node node)
add in interface NodeListadd in class GenericNodeListindex - the position of insertionnode - the node to addGenericNodeList.add( int,
org.extex.typesetter.type.Node)public void add(Node node)
add in interface NodeListadd in class GenericNodeListnode - the node to addGenericNodeList.add(
org.extex.typesetter.type.Node)public void addSkip(FixedGlue glue)
addSkip in interface NodeListaddSkip in class GenericNodeListglue - the glue to addNodeList.addSkip(
org.extex.core.glue.FixedGlue)
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class GenericNodeListjava.lang.CloneNotSupportedExceptionGenericNodeList.clone()public boolean isHorizontal()
isHorizontal in interface OrientedNodeOrientedNode.isHorizontal()public boolean isTop()
public Node remove(int index)
remove in interface NodeListremove in class GenericNodeListindex - the position
GenericNodeList.remove(int)public void setTop(boolean top)
top - the top to setisTop()
public VerticalListNode split(FixedDimen height,
java.util.logging.Logger logger,
java.util.logging.Logger traceLogger)
height - the target heightlogger - the logger for normal logging outputtraceLogger - the logger for tracing
public long spread(FixedDimen height)
height - the target size
public void toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
toString in interface NodetoString in interface NodeListtoString in class GenericNodeListsb - 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 displayNode.toString( java.lang.StringBuffer,
java.lang.String, int, int)
public void toText(java.lang.StringBuffer sb,
java.lang.String prefix)
toText in interface NodetoText in class GenericNodeListsb - the output string bufferprefix - the prefix string inserted at the beginning of each lineNode.toText( java.lang.StringBuffer,
java.lang.String)
public java.lang.Object visit(NodeVisitor visitor,
java.lang.Object value)
throws GeneralException
visit in interface Nodevisit in class GenericNodeListvisitor - the visitor to applyvalue - the argument for the visitor
GeneralException - in case of an errorNode.visit(
org.extex.typesetter.type.NodeVisitor, java.lang.Object)public long vpack(FixedDimen targetHeight)
targetHeight - the target height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||