|
||||||||||
| 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.MarkNode
public class MarkNode
A mark node carries some tokens which can be extracted after the page has been completed. It can be used extract the first and last mark for headlines.
The document writer should ignore mark nodes.
| 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 | |
|---|---|
MarkNode(Tokens mark,
java.lang.String index)
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. |
java.lang.String |
getIndex()
Getter for index. |
Tokens |
getMark()
Getter for mark. |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
This method returns the printable representation. |
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, clone, computeAdjustment, countChars, getChars, getDepth, getHeight, getLocalizer, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth, toString, 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 |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public MarkNode(Tokens mark,
java.lang.String index)
mark - the mark tokens to storeindex - the index of the mark| 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)public java.lang.String getIndex()
public Tokens getMark()
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)
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 | |||||||||