|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes the capabilities of a list maker.
Method Summary | |
void |
add(FixedGlue g)
Add a glue node to the list. |
void |
add(Node node)
Add an arbitrary node to the internal list of nodes gathered so far. |
void |
addAndAdjust(NodeList list,
TypesetterOptions options)
Add a node list to the current list maker and adjust the spacing between the elements of the list. |
void |
addSpace(TypesettingContext typesettingContext,
Count spacefactor)
Add a space node to the list. |
void |
afterParagraph(ParagraphObserver observer)
Register an observer to be invoked at the end of the paragraph. |
NodeList |
complete(TypesetterOptions context)
Close the node list. |
void |
cr(Context context,
TypesettingContext tc,
UnicodeChar uc)
Process a carriage return. |
Node |
getLastNode()
Access the last node on the list. |
Locator |
getLocator()
Getter for the locator. |
Mode |
getMode()
Getter for the current mode. |
FixedDimen |
getPrevDepth()
Getter for the previous depth parameter. |
long |
getSpacefactor()
Getter for the space factor. |
void |
leftBrace()
Notification method to deal the case that a left brace has been encountered. |
boolean |
letter(UnicodeChar uc,
TypesettingContext tc,
Context context,
TokenSource source,
Locator locator)
Add a letter to the current list or treat it in some other appropriate way. |
void |
mathShift(Context context,
TokenSource source,
Token t)
Treat a math shift character. |
void |
par()
Emit a new paragraph. |
void |
removeLastNode()
Removes the last node from the list. |
void |
rightBrace()
Notification method to deal the case that a right brace has been encountered. |
void |
setPrevDepth(FixedDimen pd)
Setter for the previous depth parameter. |
void |
setSpacefactor(FixedCount sf)
Setter for the space factor. |
void |
showlist(java.lang.StringBuffer sb,
long depth,
long breadth)
Print the status for \showlists. |
void |
subscriptMark(Context context,
TokenSource source,
Typesetter typesetter,
Token t)
Treat a subscript mark. |
void |
superscriptMark(Context context,
TokenSource source,
Typesetter typesetter,
Token t)
Treat a superscript mark. |
void |
tab(Context context,
TokenSource source,
Token t)
Treat a alignment tab character. |
Method Detail |
public void add(Node node) throws TypesetterException, ConfigurationException
node
- the node to add
TypesetterException
- in case of an error
ConfigurationException
- in case of a configuration errorpublic void addAndAdjust(NodeList list, TypesetterOptions options) throws TypesetterException, ConfigurationException
list
- the listoptions
- the options to use
TypesetterException
- in case of an error
ConfigurationException
- in case of a configuration errorpublic void add(FixedGlue g) throws TypesetterException
g
- the glue to add
TypesetterException
- in case of an errorpublic void addSpace(TypesettingContext typesettingContext, Count spacefactor) throws TypesetterException, ConfigurationException
typesettingContext
- the typesetting context for the spacespacefactor
- the space factor to use for this space or
null
to indicate that the default space factor should
be used.
TypesetterException
- in case of an error
ConfigurationException
- in case of a configuration errorpublic void afterParagraph(ParagraphObserver observer)
observer
- the observer to registerpublic NodeList complete(TypesetterOptions context) throws TypesetterException, ConfigurationException
context
- the typesetter options mapping a fragment of the
interpreter context
TypesetterException
- in case of an error
ConfigurationException
- in case of a configuration errorpublic void cr(Context context, TypesettingContext tc, UnicodeChar uc) throws TypesetterException
context
- the interpreter contexttc
- the typesetting contextuc
- the character
TypesetterException
- in case of an errorpublic Node getLastNode()
null
if the
list is emptypublic Locator getLocator()
public Mode getMode()
Mode
.public FixedDimen getPrevDepth() throws TypesetterUnsupportedException
TypesetterUnsupportedException
- in case of an errorpublic long getSpacefactor() throws TypesetterUnsupportedException
TypesetterUnsupportedException
- in case of an errorpublic void leftBrace()
public boolean letter(UnicodeChar uc, TypesettingContext tc, Context context, TokenSource source, Locator locator) throws TypesetterException
tc
- the typesetting contextuc
- the charactercontext
- the interpreter contextsource
- the source for new tokenslocator
- the locator
true
iff the character has been discarded because
it is not defined in the current font.
TypesetterException
- in case of an errorpublic void mathShift(Context context, TokenSource source, Token t) throws TypesetterException, ConfigurationException
context
- the interpreter contextsource
- the source for new tokenst
- the actual math shift character token
TypesetterException
- in case of an error
ConfigurationException
- in case of a configuration errorpublic void par() throws TypesetterException, ConfigurationException
TypesetterException
- in case of an error
ConfigurationException
- in case of a configuration errorpublic void removeLastNode()
public void rightBrace() throws TypesetterException
TypesetterException
- in case of an errorpublic void setPrevDepth(FixedDimen pd) throws TypesetterUnsupportedException
pd
- the previous depth parameter
TypesetterUnsupportedException
- in case of an errorpublic void setSpacefactor(FixedCount sf) throws TypesetterUnsupportedException, InvalidSpacefactorException
sf
- the space factor to set
TypesetterUnsupportedException
- in case of an error
InvalidSpacefactorException
- in case of an invalid space factorpublic void showlist(java.lang.StringBuffer sb, long depth, long breadth)
sb
- the target bufferdepth
- the depth of the list displaybreadth
- the breadth of the list displaypublic void subscriptMark(Context context, TokenSource source, Typesetter typesetter, Token t) throws TypesetterException
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesettert
- the actual sub mark token
TypesetterException
- in case of an errorpublic void superscriptMark(Context context, TokenSource source, Typesetter typesetter, Token t) throws TypesetterException
context
- the interpreter contextsource
- the source for new tokenstypesetter
- the typesettert
- the actual super mark token
TypesetterException
- in case of an errorpublic void tab(Context context, TokenSource source, Token t) throws TypesetterException, ConfigurationException
context
- the interpreter contextsource
- the source for new tokenst
- the actual tab token
TypesetterException
- in case of an error
ConfigurationException
- in case of a configuration error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |