|
|||||||||||
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.CharNode
de.dante.extex.typesetter.type.node.VirtualCharNode
This class exposes itself as character node but contains an hlist internally. This class is used to represent composed characters from virtual fonts.
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 | |
VirtualCharNode(TypesettingContext context,
UnicodeChar uc)
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 |
addWidthTo(WideGlue glue)
Add the flexible width of the current node to the given glue. |
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 |
clear()
Remove all nodes from the list. |
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. |
NodeList |
getNodes()
Getter for nodes. |
Dimen |
getShift()
Getter for the shift value of the node list. |
FixedDimen |
getVerticalSize()
Compute the vertical size of a node. |
FixedDimen |
getWidth()
Getter for the width of the node. |
NodeIterator |
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 |
setShift(FixedDimen d)
Setter for the shift value of the node list. |
void |
setWidth(FixedDimen width)
Setter for the width of the node. |
int |
size()
Getter for the number of elements of the list. |
void |
spreadWidth(FixedDimen width,
FixedGlueComponent sum)
Adjust the width of a flexible node. |
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.CharNode |
getCharacter, getGlyph, getSpaceFactor, getTypesettingContext, toString, toText |
Methods inherited from class de.dante.extex.typesetter.type.node.AbstractNode |
addDepthTo, addHeightTo, advanceDepth, advanceHeight, advanceWidth, computeAdjustment, getLocalizer, maxDepth, maxHeight, maxWidth, spreadHeight, toString, 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.NodeList |
toString |
Methods inherited from interface de.dante.extex.typesetter.type.Node |
addDepthTo, addHeightTo, spreadHeight, toText |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public VirtualCharNode(TypesettingContext context, UnicodeChar uc)
context
- the typesetting contextuc
- the character represented by this nodeMethod Detail |
public void add(int index, Node node)
NodeList
add
in interface NodeList
index
- the position of insertionnode
- the node to addNodeList.add(int,
de.dante.extex.typesetter.type.Node)
public void add(Node node)
NodeList
add
in interface NodeList
node
- the node to addNodeList.add(
de.dante.extex.typesetter.type.Node)
public void addSkip(FixedGlue glue)
NodeList
addSkip
in interface NodeList
glue
- the glue to addNodeList.addSkip(
de.dante.extex.interpreter.type.glue.FixedGlue)
public void addWidthTo(WideGlue glue)
Node
addWidthTo
in interface Node
addWidthTo
in class AbstractNode
AbstractNode.addWidthTo(
de.dante.extex.interpreter.type.glue.WideGlue)
public Node atShipping(Context context, Typesetter typesetter, NodeVisitor visitor, boolean inHMode) throws GeneralException
Node
atShipping
in interface Node
atShipping
in class AbstractNode
context
- the interpreter contexttypesetter
- the typesettervisitor
- the node visitor to be invoked when the node is hit. Note
that each node in the output page is visited this way. Thus there is no
need to implement a node traversal for the NodeList typesinHMode
- true
iff the container is a horizontal list.
Otherwise the container is a vertical list
null
then the node is deleted. If
the value is the node itself then it is preserved.
GeneralException
- in case of an errorNode.atShipping(
de.dante.extex.interpreter.context.Context,
de.dante.extex.typesetter.Typesetter,
de.dante.extex.typesetter.type.NodeVisitor, boolean)
public void clear()
NodeList
clear
in interface NodeList
NodeList.clear()
public NodeList copy()
NodeList
copy
in interface NodeList
NodeList.copy()
public int countChars()
Node
countChars
in interface Node
countChars
in class CharNode
CharNode.countChars()
public Node get(int index)
NodeList
get
in interface NodeList
index
- the position
null
if index
is out of boundsNodeList.get(int)
public CharNode[] getChars()
Node
getChars
in interface Node
getChars
in class CharNode
CharNode.getChars()
public FixedDimen getDepth()
Node
getDepth
in interface Node
getDepth
in class AbstractNode
Node.getDepth()
public FixedDimen getHeight()
Node
getHeight
in interface Node
getHeight
in class AbstractNode
Node.getHeight()
public Dimen getMove()
NodeList
getMove
in interface NodeList
NodeList.getMove()
public NodeList getNodes()
public Dimen getShift()
NodeList
getShift
in interface NodeList
NodeList.getShift()
public FixedDimen getVerticalSize()
Node
getVerticalSize
in interface Node
getVerticalSize
in class AbstractNode
Node.getVerticalSize()
public FixedDimen getWidth()
Node
getWidth
in interface Node
getWidth
in class AbstractNode
Node.getWidth()
public NodeIterator iterator()
NodeList
iterator
in interface NodeList
NodeList.iterator()
public Node remove(int index)
NodeList
remove
in interface NodeList
index
- the position
NodeList.remove(int)
public void setDepth(FixedDimen depth)
Node
setDepth
in interface Node
setDepth
in class AbstractNode
Node.setDepth(
de.dante.extex.interpreter.type.dimen.FixedDimen)
public void setHeight(FixedDimen height)
Node
setHeight
in interface Node
setHeight
in class AbstractNode
Node.setHeight(
de.dante.extex.interpreter.type.dimen.FixedDimen)
public void setMove(FixedDimen d)
NodeList
setMove
in interface NodeList
d
- the move valueNodeList.setMove(
de.dante.extex.interpreter.type.dimen.FixedDimen)
public void setShift(FixedDimen d)
NodeList
setShift
in interface NodeList
d
- the amount to be shiftedNodeList.setShift(
de.dante.extex.interpreter.type.dimen.FixedDimen)
public void setWidth(FixedDimen width)
Node
setWidth
in interface Node
setWidth
in class AbstractNode
Node.setWidth(
de.dante.extex.interpreter.type.dimen.FixedDimen)
public int size()
NodeList
size
in interface NodeList
NodeList.size()
public void spreadWidth(FixedDimen width, FixedGlueComponent sum)
Node
spreadWidth
in interface Node
spreadWidth
in class AbstractNode
width
- the desired widthsum
- the total sum of the gluesNode.spreadWidth(
de.dante.extex.interpreter.type.dimen.FixedDimen,
de.dante.extex.interpreter.type.glue.FixedGlueComponent)
public java.lang.Object visit(NodeVisitor visitor, java.lang.Object value) throws GeneralException
Node
visit
in interface Node
visit
in class CharNode
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 |