public final class TabularHandler extends Object implements CommandHandler, EnvironmentHandler
tabular environment.
It also handles the \\hline command.
FIXME: This is legal inside $\mbox{...}$ so needs to output MathML in this case. Eeek!!!
FIXME: No support for \vline and friends!!!| Constructor and Description |
|---|
TabularHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected static int[] |
computeTableDimensions(ArgumentContainerToken tableContent)
Computes the dimensions of the table by looking at its content.
|
void |
handleCommand(DOMBuilder builder,
Element parentElement,
CommandToken token)
The command matched here is
\\hline. |
void |
handleEnvironment(DOMBuilder builder,
Element parentElement,
EnvironmentToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException
\\hline.
This case will have been dealt with explicitly by the tabular environment when used correctly so, if we end up here, then client has made a boo-boo.
handleCommand in interface CommandHandlerbuilder - DOMBuilder running this process, which provides access
to convenience method for appending Nodes to the DOMparentElement - parent Element that the resulting Nodes should (can) be
added totoken - Token representing the command being processed.SnuggleParseException - to indicate a client errorpublic void handleEnvironment(DOMBuilder builder, Element parentElement, EnvironmentToken token) throws SnuggleParseException
EnvironmentHandlerCommandToken is being handled by the DOMBuilder.handleEnvironment in interface EnvironmentHandlerbuilder - DOMBuilder running this process, which provides access
to convenience method for appending Nodes to the DOMparentElement - parent Element that the resulting Nodes should (can) be
added totoken - Token representing the environment being processed.SnuggleParseExceptionprotected static int[] computeTableDimensions(ArgumentContainerToken tableContent)
tableContent - content of the tabular environment.Copyright © 2008–2026 The University of Edinburgh. All rights reserved.