|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.typesetter.type.noad.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 Node
s.
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. |
protected 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 de.dante.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 Noad
public Noad getSubscript()
getSubscript
in interface Noad
public 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 errorprotected void setSpacingClass(MathSpacing spacingClass)
spacingClass
- the spacingClass to setpublic void setSubscript(Noad subscript)
setSubscript
in interface Noad
subscript
- the subscript to set.public void setSuperscript(Noad superscript)
setSuperscript
in interface Noad
superscript
- the superscript to set.public java.lang.String toString()
Object.toString()
public void toString(java.lang.StringBuffer sb)
Noad
toString
in interface Noad
sb
- the string bufferNoad.toString(
java.lang.StringBuffer)
public void toString(java.lang.StringBuffer sb, int depth)
Noad
toString
in interface Noad
sb
- 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 |