Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.dombuilding

public final Class SpaceHandler

extends Object
implements CommandHandler
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler
Imports
uk.ac.ed.ph.snuggletex.SnuggleLogicException, uk.ac.ed.ph.snuggletex.definitions.LaTeXMode, uk.ac.ed.ph.snuggletex.internal.DOMBuilder, uk.ac.ed.ph.snuggletex.tokens.CommandToken, org.w3c.dom.Element

Creates preset spacing elements in MATH and/or TEXT modes.
Author
David McKain
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private final String
mathWidth

Width attribute for mspace Element in MATH mode, null if not supported

private final String
textString

String to use to create space text Node in TEXT mode, null if not supported

Constructor Summary

AccessConstructor and Description
public
SpaceHandler(final String textString, final String mathWidth)

Method Summary

Modifier and TypeMethod and Description
public void
handleCommand(DOMBuilder builder, Element parentElement, CommandToken token)

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mathWidthback to summary
private final String mathWidth

Width attribute for mspace Element in MATH mode, null if not supported

textStringback to summary
private final String textString

String to use to create space text Node in TEXT mode, null if not supported

Constructor Detail

SpaceHandlerback to summary
public SpaceHandler(final String textString, final String mathWidth)

Method Detail

handleCommandback to summary
public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token)

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Doc from uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.