|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.noad.AbstractNoad
org.extex.typesetter.type.noad.MathList
public class 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()
Get the string representation of this object for debugging purposes. |
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 org.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.
MathListpublic java.lang.String toString()
toString in class AbstractNoadObject.toString()public void toString(java.lang.StringBuffer sb)
toString in interface NoadtoString in class AbstractNoadsb - the string bufferNoad.toString(
java.lang.StringBuffer)
public void toString(java.lang.StringBuffer sb,
int depth)
toString in interface NoadtoString in class AbstractNoadsb - the string bufferdepth - the depth to which the full information should be givenNoad.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
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
TypesetterException - in case of a problem
ConfigurationException - in case of a configuration problemNoad.typeset(
org.extex.typesetter.type.noad.Noad,
org.extex.typesetter.type.noad.NoadList,
int,
org.extex.typesetter.type.NodeList,
org.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 | |||||||||