|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.listMaker.AbstractListMaker
org.extex.typesetter.listMaker.HorizontalListMaker
public class HorizontalListMaker
Maker for a horizontal list.
After par(), the line breaking and hyphenation are applied.
| Constructor Summary | |
|---|---|
HorizontalListMaker(ListManager manager,
Locator locator)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
add(FixedGlue g)
Add a glue node to the list. |
void |
add(Node c)
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 context,
FixedCount sfCount)
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. |
Mode |
getMode()
Getter for the current mode. |
protected HorizontalListNode |
getNodes()
Getter for nodes. |
long |
getSpacefactor()
Getter for the space factor. |
boolean |
letter(UnicodeChar symbol,
TypesettingContext tc,
Context context,
TokenSource source,
Locator locator)
Add a letter to the current list or treat it in some other appropriate way. |
void |
par()
Emit a new paragraph. |
void |
removeLastNode()
Removes the last node from the list. |
protected void |
setNodes(HorizontalListNode nodes)
Setter for nodes. |
void |
setSpacefactor(FixedCount f)
Setter for the space factor. |
void |
showlist(java.lang.StringBuffer sb,
long l,
long m)
Print the status for \showlists. |
java.lang.String |
toString()
Get the string representation of this object for debugging purposes. |
| Methods inherited from class org.extex.typesetter.listMaker.AbstractListMaker |
|---|
getLocalizer, getLocator, getManager, getMyLocalizer, getPrevDepth, leftBrace, mathShift, rightBrace, setPrevDepth, subscriptMark, superscriptMark, tab |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HorizontalListMaker(ListManager manager,
Locator locator)
manager - the manager to ask for global changeslocator - the locator| Method Detail |
|---|
public void add(Node c)
throws TypesetterException,
ConfigurationException
c - the node to add
TypesetterException - in case of an error
ConfigurationException - in case of a configuration errorListMaker.add( org.extex.typesetter.type.Node)
public void addAndAdjust(NodeList list,
TypesetterOptions options)
throws TypesetterException
list - the listoptions - the options to use
TypesetterException - in case of an errorListMaker.addAndAdjust(
org.extex.typesetter.type.NodeList,
org.extex.typesetter.TypesetterOptions)
public void add(FixedGlue g)
throws TypesetterException
g - the glue to add
TypesetterException - in case of an errorListMaker.add( org.extex.core.glue.FixedGlue)
public void addSpace(TypesettingContext context,
FixedCount sfCount)
throws TypesetterException,
ConfigurationException
context - the typesetting context for the spacesfCount - 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 errorListMaker.addSpace(
org.extex.typesetter.tc.TypesettingContext,
FixedCount)public void afterParagraph(ParagraphObserver observer)
observer - the observer to registerListMaker.afterParagraph(
org.extex.typesetter.ParagraphObserver)
public 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 errorListMaker.complete(TypesetterOptions)
public void cr(Context context,
TypesettingContext tc,
UnicodeChar uc)
throws TypesetterException
context - the interpreter contexttc - the typesetting contextuc - the character
TypesetterException - in case of an errorTokenDelegateListMaker.cr(
org.extex.interpreter.context.Context,
org.extex.typesetter.tc.TypesettingContext,
org.extex.core.UnicodeChar)public Node getLastNode()
null if the
list is emptyListMaker.getLastNode()public Mode getMode()
getMode in interface ListMakergetMode in class AbstractListMakerMode.ListMaker.getMode()protected HorizontalListNode getNodes()
public long getSpacefactor()
getSpacefactor in interface ListMakergetSpacefactor in class AbstractListMakerListMaker.getSpacefactor()
public boolean letter(UnicodeChar symbol,
TypesettingContext tc,
Context context,
TokenSource source,
Locator locator)
throws TypesetterException
symbol - the charactertc - the typesetting contextcontext - 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 errorTokenDelegateListMaker.letter(
org.extex.core.UnicodeChar,
org.extex.typesetter.tc.TypesettingContext,
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.core.Locator),
"The TeXbook [p.76]"
public void par()
throws TypesetterException,
ConfigurationException
TypesetterException - in case of an error
ConfigurationException - in case of a configuration errorListMaker.par()public void removeLastNode()
ListMaker.removeLastNode()protected void setNodes(HorizontalListNode nodes)
nodes - the nodes to set.
public void setSpacefactor(FixedCount f)
throws TypesetterUnsupportedException,
InvalidSpacefactorException
setSpacefactor in interface ListMakersetSpacefactor in class AbstractListMakerf - the space factor to set
TypesetterUnsupportedException - in case of an error
InvalidSpacefactorException - in case of an invalid space factorListMaker.setSpacefactor(
org.extex.core.count.FixedCount)
public void showlist(java.lang.StringBuffer sb,
long l,
long m)
sb - the target bufferl - the depth of the list displaym - the breadth of the list displayListMaker.showlist( java.lang.StringBuffer,
long, long)public java.lang.String toString()
toString in class AbstractListMakerObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||