de.dante.extex.typesetter.dump
Class DumpTypesetter

java.lang.Object
  extended byde.dante.extex.typesetter.impl.TypesetterImpl
      extended byde.dante.extex.typesetter.dump.DumpTypesetter
All Implemented Interfaces:
ListMaker, ListManager, Localizable, LogEnabled, Typesetter

public class DumpTypesetter
extends TypesetterImpl

This class implements the typesetter interface but simply records the events received.

Version:
$Revision: 1.32 $
Author:
Gerd Neugebauer

Constructor Summary
DumpTypesetter()
          Creates a new object.
 
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 addSpace(TypesettingContext typesettingContext, Count spacefactor)
          Add a space node to the list.
 NodeList complete(TypesetterOptions context)
          Close the node list.
 
Methods inherited from class de.dante.extex.typesetter.impl.TypesetterImpl
addAndAdjust, afterParagraph, buildParagraph, clearShipoutMark, cr, enableLocalization, enableLogging, endParagraph, ensureHorizontalMode, finish, getBackendDriver, getLastNode, getListMaker, getLocator, getManager, getMode, getNodeFactory, getOptions, getPrevDepth, getSpacefactor, isShipoutMark, leftBrace, letter, mathShift, par, pop, push, removeLastNode, rightBrace, setBackend, setNodeFactory, setOptions, setOutputRoutine, setPageBuilder, setParagraphBuilder, setPrevDepth, setSpacefactor, shipout, showlist, showlists, subscriptMark, superscriptMark, tab, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DumpTypesetter

public DumpTypesetter()
Creates a new object.

Method Detail

add

public void add(Node node)
         throws TypesetterException,
                ConfigurationException
Description copied from interface: ListMaker
Add an arbitrary node to the internal list of nodes gathered so far. The node should not be one of the special nodes treated by methods of their own.

Specified by:
add in interface ListMaker
Overrides:
add in class TypesetterImpl
Throws:
TypesetterException
ConfigurationException
See Also:
ListMaker.add( de.dante.extex.typesetter.type.Node)

add

public void add(FixedGlue g)
         throws TypesetterException
Description copied from interface: ListMaker
Add a glue node to the list.

Specified by:
add in interface ListMaker
Overrides:
add in class TypesetterImpl
Throws:
TypesetterException
See Also:
ListMaker.add( de.dante.extex.interpreter.type.glue.FixedGlue)

addSpace

public void addSpace(TypesettingContext typesettingContext,
                     Count spacefactor)
              throws TypesetterException,
                     ConfigurationException
Description copied from interface: ListMaker
Add a space node to the list.

Specified by:
addSpace in interface ListMaker
Overrides:
addSpace in class TypesetterImpl
Throws:
TypesetterException
ConfigurationException
See Also:
de.dante.extex.typesetter.ListMaker#addSpace( de.dante.extex.interpreter.context.TypesettingContext, de.dante.extex.interpreter.type.count.Count)

complete

public NodeList complete(TypesetterOptions context)
                  throws TypesetterException,
                         ConfigurationException
Description copied from interface: ListMaker
Close the node list. This means that everything is done to ship the closed node list to the document writer. Nevertheless the invoking application might decide not to modify the node list and continue processing. In the other case some nodes might be taken from the node list returned by this method. Then the processing has to continue with the reduced node list.

Specified by:
complete in interface ListMaker
Overrides:
complete in class TypesetterImpl
Throws:
TypesetterException
ConfigurationException
See Also:
ListMaker.complete( de.dante.extex.typesetter.TypesetterOptions)