|
||||||||||
| 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.CharNode
org.extex.typesetter.type.node.VirtualCharNode
public class 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 org.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. |
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. |
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 |
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.String |
toString()
This method returns the printable representation. |
java.lang.String |
toText()
Provides a string representation of the current instance. |
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.CharNode |
|---|
getCharacter, getSpaceFactor, getTypesettingContext, toString, toText |
| Methods inherited from class org.extex.typesetter.type.node.AbstractNode |
|---|
addDepthTo, addHeightTo, advanceNaturalDepth, advanceNaturalHeight, advanceNaturalWidth, atShipping, clone, computeAdjustment, getLocalizer, getNaturalDepth, getNaturalHeight, getNaturalWidth, maxDepth, maxHeight, maxWidth, spreadHeight, 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 |
|---|
toString |
| Methods inherited from interface org.extex.typesetter.type.Node |
|---|
addDepthTo, addHeightTo, atShipping, getNaturalDepth, getNaturalHeight, getNaturalWidth, 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 node| 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 addWidthTo(WideGlue glue)
addWidthTo in interface NodeaddWidthTo in class AbstractNodeglue - the glue to add to.AbstractNode.addWidthTo(
org.extex.core.glue.WideGlue)public void clear()
clear in interface NodeListNodeList.clear()public NodeList copy()
copy in interface NodeListNodeList.copy()public int countChars()
countChars in interface NodecountChars in class CharNodeCharNode.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 CharNodeCharNode.getChars()public FixedDimen getDepth()
getDepth in interface NodegetDepth in class AbstractNodeNode.getDepth()public FixedDimen getHeight()
getHeight in interface NodegetHeight in class AbstractNodeNode.getHeight()public Dimen getMove()
getMove in interface NodeListNodeList.getMove()public NodeList getNodes()
public Dimen getShift()
getShift in interface NodeListNodeList.getShift()public FixedDimen getVerticalSize()
getVerticalSize in interface NodegetVerticalSize in class AbstractNodeNode.getVerticalSize()public FixedDimen getWidth()
getWidth in interface NodegetWidth in class AbstractNodeNode.getWidth()public boolean isEmpty()
isEmpty in interface NodeListtrue, if the NodeList is empty,
otherwise false.NodeList.isEmpty()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 depthNode.setDepth(
org.extex.core.dimen.FixedDimen)public void setHeight(FixedDimen height)
setHeight in interface NodesetHeight in class AbstractNodeheight - the new heightNode.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 setShift(FixedDimen d)
setShift in interface NodeListd - the amount to be shiftedNodeList.setShift(
org.extex.core.dimen.FixedDimen)public void setWidth(FixedDimen width)
setWidth in interface NodesetWidth in class AbstractNodewidth - the new widthNode.setWidth(
org.extex.core.dimen.FixedDimen)public int size()
size in interface NodeListNodeList.size()
public void spreadWidth(FixedDimen width,
FixedGlueComponent sum)
spreadWidth in interface NodespreadWidth in class AbstractNodewidth - the desired widthsum - the total sum of the gluesNode.spreadWidth(
org.extex.core.dimen.FixedDimen,
org.extex.core.glue.FixedGlueComponent)public java.lang.String toString()
toString in class AbstractNodeAbstractNode.toString()public java.lang.String toText()
toText in interface NodeListNodeList.toText()
public java.lang.Object visit(NodeVisitor visitor,
java.lang.Object value)
throws GeneralException
visit in interface Nodevisit in class CharNodevisitor - 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 | |||||||||