|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NoadConsumer
This interface describes list makers which are able to consume a Noad. This is usually the case for math list makers.
| Method Summary | |
|---|---|
void |
add(MathCode mc,
TypesettingContext tc)
Add a mathematical glyph. |
void |
add(MathDelimiter del,
TypesettingContext tc)
Add a mathematical delimiter. |
void |
add(Mudimen skip)
Add some math dimen Noad to the internal list. |
void |
add(Muskip glue)
Add some math glue Noad to the internal list. |
void |
add(Noad noad)
Add an arbitrary Noad to the internal list if it is prepared to hold one. |
Noad |
getLastNoad()
Get access to the previous noad. |
void |
left(MathDelimiter delimiter)
Open the group for a \left-\right construction. |
void |
middle(MathDelimiter delimiter)
Middle in the group for a \left-\right construction. |
void |
right(MathDelimiter delimiter)
Close the group for a \left-\right construction. |
Noad |
scanNoad(Flags flags,
Context context,
TokenSource source,
Typesetter typesetter,
Token primitive,
GroupType groupType)
Process the input until a Noad is completed. |
void |
switchToFraction(MathDelimiter leftDelimiter,
MathDelimiter rightDelimiter,
FixedDimen ruleWidth,
TypesettingContext tc)
This method instructs the implementing class to use a fraction construction. |
| Methods inherited from interface org.extex.typesetter.ListMaker |
|---|
add, add, addAndAdjust, addSpace, afterParagraph, complete, getLastNode, getLocator, getMode, getPrevDepth, getSpacefactor, leftBrace, par, removeLastNode, rightBrace, setPrevDepth, setSpacefactor, showlist |
| Method Detail |
|---|
void add(MathCode mc,
TypesettingContext tc)
throws TypesetterException
mc - the math codetc - the typesetting context
TypesetterException - in case of an error
void add(MathDelimiter del,
TypesettingContext tc)
throws TypesetterException
del - the delimitertc - the typesetting context
TypesetterException - in case of an error
void add(Muskip glue)
throws TypesetterException
glue - the glue to add
TypesetterException - in case of an error
void add(Mudimen skip)
throws TypesetterException
skip - the length to add
TypesetterException - in case of an error
void add(Noad noad)
throws TypesetterException
noad - the noad to add
TypesetterException - in case of an error
Noad getLastNoad()
throws TypesetterException
null if there is none
TypesetterException - in case of an error
void left(MathDelimiter delimiter)
throws TypesetterException
delimiter - the delimiter to typeset on theleft side
TypesetterException - in case of an error
void middle(MathDelimiter delimiter)
throws TypesetterException
delimiter - the delimiter to typeset here
TypesetterException - in case of an error
void right(MathDelimiter delimiter)
throws TypesetterException
delimiter - the delimiter to typeset on the right side
TypesetterException - in case of an error
Noad scanNoad(Flags flags,
Context context,
TokenSource source,
Typesetter typesetter,
Token primitive,
GroupType groupType)
throws TypesetterException,
HelpingException
flags - the flags to restore after processingcontext - the interpreter contextsource - the source for new tokenstypesetter - the typesetterprimitive - the name of the primitive for error messagesgroupType - the group type in case that a group needs to be opened
null if none could be gathered
TypesetterException - in case of an error
HelpingException - in case of an error
void switchToFraction(MathDelimiter leftDelimiter,
MathDelimiter rightDelimiter,
FixedDimen ruleWidth,
TypesettingContext tc)
throws TypesetterException
leftDelimiter - the left delimiter or null if none
should be used.rightDelimiter - the right delimiter or null if none
should be used.ruleWidth - th width of the rule or null to indicate
that the default width should be usedtc - the typesetting context
TypesetterException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||