|
||||||||||
| 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.LigatureNode
public class LigatureNode
The ligature node represents a ligature of several characters. Ligatures can be build among characters from one common font only. The information where and how to build ligatures comes from the font. The original characters are contained in this node to be restored when required.
| 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 | |
|---|---|
LigatureNode(TypesettingContext context,
UnicodeChar uc,
CharNode left,
CharNode right)
Creates a new object. |
|
| Method Summary | |
|---|---|
int |
countChars()
This method determines the number of characters contained in a node. |
CharNode[] |
getChars()
Getter for the array of characters enclosed in this node. |
CharNode |
getLeft()
Getter for left node. |
CharNode |
getRight()
Getter for right node. |
void |
toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
This method returns the printable representation. |
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, toText |
| Methods inherited from class org.extex.typesetter.type.node.AbstractNode |
|---|
addDepthTo, addHeightTo, addWidthTo, advanceNaturalDepth, advanceNaturalHeight, advanceNaturalWidth, atShipping, clone, computeAdjustment, 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, atShipping, getDepth, getHeight, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth, toText |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public LigatureNode(TypesettingContext context,
UnicodeChar uc,
CharNode left,
CharNode right)
context - the typesetting contextuc - the Unicode characterleft - the first node for the ligatureright - the second node for the ligature| Method Detail |
|---|
public int countChars()
countChars in interface NodecountChars in class CharNodeNode.countChars()public CharNode[] getChars()
getChars in interface NodegetChars in class CharNodeNode.getChars()public CharNode getLeft()
public CharNode getRight()
public void toString(java.lang.StringBuffer sb,
java.lang.String prefix,
int breadth,
int depth)
toString in interface NodetoString in class CharNodesb - 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 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 | |||||||||