|
|||||||||||
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
de.dante.extex.typesetter.type.noad.MathList
This class provides a container for Noads and Nodes.
Constructor Summary | |
MathList()
Creates a new object without any items. |
Method Summary | |
void |
add(Noad noad)
Add an arbitrary knot to the list. |
boolean |
empty()
Test whether the node list is empty. |
Noad |
get(int index)
Getter for a node at a given position. |
Noad |
getLastNoad()
Getter for the last noad previously stored. |
Noad |
remove(int index)
Remove an element at a given position. |
int |
size()
Return the size of the MathList . |
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. |
void |
typeset(Noad previousNoad,
NoadList noads,
int index,
NodeList list,
MathContext mathContext,
java.util.logging.Logger logger)
Translate a Noad into a NodeList. |
Methods inherited from class de.dante.extex.typesetter.type.noad.AbstractNoad |
getLocalizer, getSpacingClass, getSubscript, getSuperscript, makeScripts, rebox, setSpacingClass, setSubscript, setSuperscript, toStringAdd, toStringSubsidiaray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MathList()
Method Detail |
public void add(Noad noad)
noad
- the noad to addpublic boolean empty()
true
, if the list is empty,
otherwise false
.public Noad get(int index)
index
- the position
null
if index
is out of boundspublic Noad getLastNoad()
null
if none is availablepublic Noad remove(int index)
index
- the position
public int size()
MathList
.
MathList
public java.lang.String toString()
toString
in class AbstractNoad
Object.toString()
public void toString(java.lang.StringBuffer sb)
Noad
toString
in interface Noad
toString
in class AbstractNoad
Noad.toString(
java.lang.StringBuffer)
public void toString(java.lang.StringBuffer sb, int depth)
Noad
toString
in interface Noad
toString
in class AbstractNoad
Noad.toString(
java.lang.StringBuffer, int)
public void typeset(Noad previousNoad, NoadList noads, int index, NodeList list, MathContext mathContext, java.util.logging.Logger logger) throws TypesetterException, ConfigurationException
Noad
previousNoad
- the previous noadnoads
- the list of noads currently processedindex
- the index of the current node in the listlist
- the list to add the nodes to. This list contains the Nodes
previously typeset. Thus it can be used to look backmathContext
- the context to considerlogger
- the logger for debugging and tracing information
ConfigurationException
- in case of a configuration problem
TypesetterException
- in case of a problemNoad.typeset(
de.dante.extex.typesetter.type.noad.Noad,
de.dante.extex.typesetter.type.noad.NoadList,
int,
de.dante.extex.typesetter.type.NodeList,
de.dante.extex.typesetter.type.noad.util.MathContext,
java.util.logging.Logger)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |