|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.noad.AbstractNoad
public abstract class AbstractNoad
This is the abstract base class for Noads. A
The dimen parameter \scriptspace contains the amount of spacing
added to the width of subscripts.
Noad is the intermediate data
structure which is used for processing mathematical material. Finally Noads
are translated into Nodes. Thus Noad
will never arrive at the DocumentWriter.
The Dimen Parameter \scriptspace
| Constructor Summary | |
|---|---|
AbstractNoad()
Creates a new object. |
|
| Method Summary | |
|---|---|
Localizer |
getLocalizer()
Getter for the localizer. |
MathSpacing |
getSpacingClass()
Getter for spacingClass. |
Noad |
getSubscript()
Getter for the subscript. |
Noad |
getSuperscript()
Getter for the superscript. |
protected Node |
makeScripts(Node node,
MathContext mc,
FixedDimen delta,
java.util.logging.Logger logger)
Attach the subscripts and superscripts to the current hlist. |
protected static Node |
rebox(Node node,
Dimen width)
Arrange that the node has exactly the width given and the old content is centered in it. |
void |
setSpacingClass(MathSpacing spacingClass)
Setter for spacingClass. |
void |
setSubscript(Noad subscript)
Setter for the subscript. |
void |
setSuperscript(Noad superscript)
Setter for the superscript. |
java.lang.String |
toString()
|
void |
toString(java.lang.StringBuffer sb)
Produce a printable representation of the noad in a StringBuffer. |
void |
toString(java.lang.StringBuffer sb,
int depth)
Produce a printable representation to a certain depth of the noad. |
protected void |
toStringAdd(java.lang.StringBuffer sb,
int depth)
Add some information in the middle of the default toString method. |
protected static void |
toStringSubsidiaray(java.lang.StringBuffer sb,
Noad noad,
int depth,
java.lang.String prefix)
Print a noad to the string buffer preceded by some prefix if the noad is not null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.extex.typesetter.type.noad.Noad |
|---|
typeset |
| Constructor Detail |
|---|
public AbstractNoad()
| Method Detail |
|---|
protected static Node rebox(Node node,
Dimen width)
node - the node to reboxwidth - the target width
protected static void toStringSubsidiaray(java.lang.StringBuffer sb,
Noad noad,
int depth,
java.lang.String prefix)
null.
sb - the target buffernoad - the noad to printdepth - the recursion depthprefix - the prefix to print before the noadpublic Localizer getLocalizer()
public MathSpacing getSpacingClass()
getSpacingClass in interface Noadpublic Noad getSubscript()
getSubscript in interface Noadpublic Noad getSuperscript()
getSuperscript in interface Noad
protected Node makeScripts(Node node,
MathContext mc,
FixedDimen delta,
java.util.logging.Logger logger)
throws TypesetterException,
ConfigurationException
node - the current nodemc - the math contextdelta - superscript is delta to the right of the subscript if both
are presentlogger - the logger
null is returned instead.
TypesetterException - in case of an error
ConfigurationException - in case of an configuration errorpublic void setSpacingClass(MathSpacing spacingClass)
setSpacingClass in interface NoadspacingClass - the spacingClass to setpublic void setSubscript(Noad subscript)
setSubscript in interface Noadsubscript - the subscript to set.public void setSuperscript(Noad superscript)
setSuperscript in interface Noadsuperscript - the superscript to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void toString(java.lang.StringBuffer sb)
Noad
toString in interface Noadsb - the string bufferNoad.toString(
java.lang.StringBuffer)
public void toString(java.lang.StringBuffer sb,
int depth)
Noad
toString in interface Noadsb - the string bufferdepth - the depth to which the full information should be givenNoad.toString(
java.lang.StringBuffer, int)
protected void toStringAdd(java.lang.StringBuffer sb,
int depth)
sb - the target string bufferdepth - the recursion depth
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||