|
|||||||||||
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.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 de.dante.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 de.dante.extex.typesetter.type.node.CharNode |
getCharacter, getGlyph, getSpaceFactor, getTypesettingContext, toText |
Methods inherited from class de.dante.extex.typesetter.type.node.AbstractNode |
addDepthTo, addHeightTo, addWidthTo, advanceDepth, advanceHeight, advanceWidth, atShipping, computeAdjustment, getDepth, getHeight, getLocalizer, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, spreadHeight, spreadWidth, 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.Node |
addDepthTo, addHeightTo, addWidthTo, atShipping, getDepth, getHeight, 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 ligatureMethod Detail |
public int countChars()
Node
countChars
in interface Node
countChars
in class CharNode
Node.countChars()
public CharNode[] getChars()
Node
getChars
in interface Node
getChars
in class CharNode
Node.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 Node
toString
in class CharNode
sb
- 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
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 |