|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.noad.ChoiceNoad
public class ChoiceNoad
This noad provides a switch construction depending on the current style.
| Constructor Summary | |
|---|---|
ChoiceNoad(Noad displayMath,
Noad textMath,
Noad scriptMath,
Noad scriptscriptMath)
Creates a new object. |
|
| Method Summary | |
|---|---|
MathSpacing |
getSpacingClass()
Getter for spacing class. |
Noad |
getSubscript()
Getter for the subscript. |
Noad |
getSuperscript()
Getter for the superscript. |
void |
setSpacingClass(MathSpacing spacingClass)
Setter for spacing class. |
void |
setSubscript(Noad subscript)
Setter for the subscript. |
void |
setSuperscript(Noad superscript)
Setter for the superscript. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChoiceNoad(Noad displayMath,
Noad textMath,
Noad scriptMath,
Noad scriptscriptMath)
displayMath - the noads used in display styletextMath - the noads used in text stylescriptMath - the noads used in script stylescriptscriptMath - the noads used in scriptscript style| Method Detail |
|---|
public MathSpacing getSpacingClass()
getSpacingClass in interface NoadNoad.getSpacingClass()public Noad getSubscript()
getSubscript in interface NoadNoad.getSubscript()public Noad getSuperscript()
getSuperscript in interface NoadNoad.getSuperscript()public void setSpacingClass(MathSpacing spacingClass)
setSpacingClass in interface NoadspacingClass - the spacing class to setNoad.setSpacingClass(
org.extex.typesetter.type.noad.util.MathSpacing)public void setSubscript(Noad subscript)
setSubscript in interface Noadsubscript - the subscript to set.Noad.setSubscript(
org.extex.typesetter.type.noad.Noad)public void setSuperscript(Noad superscript)
setSuperscript in interface Noadsuperscript - the superscript to set.Noad.setSuperscript(
org.extex.typesetter.type.noad.Noad)public void toString(java.lang.StringBuffer sb)
toString in interface Noadsb - the string bufferNoad.toString(
java.lang.StringBuffer)
public void toString(java.lang.StringBuffer sb,
int depth)
toString in interface Noadsb - 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
typeset in interface NoadpreviousNoad - 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 | |||||||||