|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dessci.mathflow.sdk.composer.DocumentComposer
public class DocumentComposer
This class is used to transform MathML embedded in documents to add additional information (e.g., spoken speech for the equation) or replace it with images. It can produce EPS (Windows only), GIF, and PNG image types.
| Field Summary |
|---|
| Fields inherited from interface com.dessci.mathflow.sdk.license.LicenseConstants |
|---|
debugMode, DESSCI_KEY, DOCUMENT_COMPOSER, DOCUMENT_COMPOSER_FOR_JAVA, DSI_LICENSE_DAEMON, EQUATION_COMPOSER, EQUATION_COMPOSER_FOR_JAVA, EVAL_LICENSE_FOR_APPLETS, FLEXLM_LIB_NAME, FLEXLM_LIC, LICENSE_EXPIRED, LICENSE_FILE_NAME, LICENSE_FOLDER_NAME, LICENSE_ID, LICENSE_INVALID, LICENSE_NOT_AVAILABLE, LICENSE_OK, SIMPLE_EDITOR, STRUCTURE_EDITOR, STYLE_EDITOR |
| Fields inherited from interface webeq3.parser.html.ParserConstants |
|---|
DSTag, DSTagSp, EOF, htmlClosed, htmlEmptyEnd, htmlEmptyStart, htmlNone, htmlUnclosed, htmlXMLEmpty, parseBAD_HTML, parseGOOD_HTML, parseXML |
| Fields inherited from interface com.dessci.mathflow.sdk.composer.ComposerConstants |
|---|
_IMAGES, _OUT, ANTIALIASINGOFF, BACKGROUND, BG, BLACK, BREAKWIDTH, CHARMAP, DEBUG, DPI, FALSE, FG, FONT_MAPPING_FILE, FONTMAPPING, FONTMETRICS, FOREGROUND, GIF, IMAGEFOLDER, IMAGENAME, IMAGES, IMAGETYPE, IMG, IMGTYPE, INPUTDOC, LICENSE, LOGFILE, MATHML, MATHMLFILE, MUTE, NONE, NORMAL, OPDICT, OPTIONS, OUTPUTDOC, OUTPUTTYPE, PADDING, PNG, POINTSIZE, READOPTIONS, SAVEOPTIONS, SIZE, TAB, TRANSPARENT, TRUE, VERBOSITY, WHITE |
| Constructor Summary | |
|---|---|
DocumentComposer()
|
|
| Method Summary | |
|---|---|
void |
ClearLastMessage()
Clears the last saved message string. |
java.lang.String |
GetBackground()
Returns the background color of the equation. |
int |
GetBreakWidth()
Returns the width in pixels where line wrapping for long equations should occur, or 0 if line wrapping is disabled. |
java.lang.String |
GetCharMap()
Returns the path to the character mapping file. |
int |
GetDPI()
Returns the DPI for the equation image. |
java.lang.String |
GetFontMapping()
Returns the path to the font mapping file. |
java.lang.String |
GetForeground()
Returns the foreground color of the equation. |
java.lang.String |
GetImageFolder()
Returns the path to the folder that will contain the image files. |
java.lang.String |
GetImageName()
Returns the base file name for the equation image. |
java.lang.String |
GetImageType()
Returns the type of the equation image. |
java.lang.String |
GetInputDoc()
Returns the path to the source document that needs to be processed. |
java.lang.String |
GetLastMessage()
Returns the last saved message string. |
java.lang.String |
GetLicense()
Returns the path to the FlexLM license file or the MathFlow SDK registration key, depending on the license type. |
java.lang.String |
GetLogFile()
Returns the path to the log file that we write error messages to. |
java.lang.String |
GetOperatorDictionary()
Returns the path to the operator dictionary file |
java.lang.String |
GetOutputDoc()
Returns the path to the target document that we output into. |
java.lang.String |
GetOutputType()
Returns the equation output type for processing the document. |
int |
GetPadding()
Returns the padding around the border of the equation image. |
int |
GetPointSize()
Returns the base point size of the equation. |
java.lang.String |
GetVerbosity()
Returns what processing messages should be displayed. |
boolean |
IsFontMetricsEnabled()
Returns whether metrics should appear in the output file. |
static void |
main(java.lang.String[] args)
|
void |
ProcessDocument()
Processes the specified source document to transform the MathML into images and outputs into the specified target document. |
void |
ReadOptions(java.lang.String readoptions)
Reads all the settings from the specified XML file. |
void |
SaveOptions(java.lang.String saveoptions)
Writes all the settings to the specified XML file. |
void |
SetBackground(java.lang.String bg)
Sets the background color for the equation. |
void |
SetBreakWidth(int breakwidth)
Sets the width where line wrapping for long equations should occur. |
void |
SetCharMap(java.lang.String charmap)
Sets the path to the character mapping file. |
void |
SetDPI(int dpi)
Sets the DPI for the equation image. |
void |
SetFontMapping(java.lang.String fontmapping)
Sets the path to the font mapping file. |
void |
SetFontMetrics(boolean fontmetrics)
Sets whether metrics should appear in the output file. |
void |
SetForeground(java.lang.String fg)
Sets the foreground color for the equation. |
void |
SetImageFolder(java.lang.String imagefolder)
Sets the path to the folder that will contain the image files. |
void |
SetImageName(java.lang.String imagename)
Sets the base file name for the equation image. |
void |
SetImageType(java.lang.String imagetype)
Sets the type of the equation image. |
void |
SetInputDoc(java.lang.String inputdoc)
Sets the path to the source document that needs to be processed. |
void |
SetLicense(java.lang.String license)
Sets the path to the FlexLM license file or the MathFlow SDK registration key. |
void |
SetLogFile(java.lang.String logfile)
Sets the path to the log file that we write error messages to. |
void |
SetOperatorDictionary(java.lang.String filepath)
Sets the path to the operator dictionary file |
void |
SetOutputDoc(java.lang.String outputdoc)
Sets the path to the target document that we output into. |
void |
SetOutputType(java.lang.String outputtype)
Sets the equation output type for processing the document. |
void |
SetPadding(int padding)
Sets the padding around the border of the equation image. |
void |
SetPointSize(int pointsize)
Sets the base point size of the equation. |
void |
SetVerbosity(java.lang.String verbosity)
Sets what processing messages should be displayed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentComposer()
| Method Detail |
|---|
public void ClearLastMessage()
public java.lang.String GetBackground()
public int GetBreakWidth()
public java.lang.String GetCharMap()
public int GetDPI()
public java.lang.String GetFontMapping()
public java.lang.String GetForeground()
public java.lang.String GetImageFolder()
public java.lang.String GetImageName()
public java.lang.String GetImageType()
public java.lang.String GetInputDoc()
public java.lang.String GetLastMessage()
public java.lang.String GetLicense()
public java.lang.String GetLogFile()
public java.lang.String GetOperatorDictionary()
public java.lang.String GetOutputDoc()
public java.lang.String GetOutputType()
public int GetPadding()
public int GetPointSize()
public java.lang.String GetVerbosity()
public boolean IsFontMetricsEnabled()
public static void main(java.lang.String[] args)
public void ProcessDocument()
throws com.dessci.mathflow.sdk.license.LicenseException,
java.lang.StringIndexOutOfBoundsException
com.dessci.mathflow.sdk.license.LicenseException
java.lang.StringIndexOutOfBoundsException
public void ReadOptions(java.lang.String readoptions)
throws java.lang.Exception
readoptions - the XML file that contains all the settings
java.lang.Exception
public void SaveOptions(java.lang.String saveoptions)
throws java.lang.Exception
saveoptions - the XML file that we write the settings to
java.lang.Exception
public void SetBackground(java.lang.String bg)
throws java.lang.IllegalArgumentException
bg - the background color of the equation, in the format of #rgb,
#rrggbb or the HTML color name
java.lang.IllegalArgumentException
public void SetBreakWidth(int breakwidth)
throws java.lang.IllegalArgumentException
breakwidth - the width where line wrapping for long equations should occur or
0 if line wrapping is disabled
java.lang.IllegalArgumentException
public void SetCharMap(java.lang.String charmap)
throws java.lang.IllegalArgumentException
charmap - the full path to the character mapping file
java.lang.IllegalArgumentException
public void SetDPI(int dpi)
throws java.lang.IllegalArgumentException
dpi - the DPI for the equation image
java.lang.IllegalArgumentExceptionpublic void SetFontMapping(java.lang.String fontmapping)
fontmapping - the path to the font mapping file
public void SetFontMetrics(boolean fontmetrics)
throws java.lang.IllegalArgumentException
fontmetrics - whether metrics should appear in the output file
java.lang.IllegalArgumentException
public void SetForeground(java.lang.String fg)
throws java.lang.IllegalArgumentException
fg - the foreground color for the equation, in the format of #rgb,
#rrggbb or the HTML color name
java.lang.IllegalArgumentException
public void SetImageFolder(java.lang.String imagefolder)
throws java.lang.IllegalArgumentException
imagefolder - the path to the folder that will contain the image files
java.lang.IllegalArgumentException
public void SetImageName(java.lang.String imagename)
throws java.lang.IllegalArgumentException
imagename - the base file name for the equation image
java.lang.IllegalArgumentException
public void SetImageType(java.lang.String imagetype)
throws java.lang.IllegalArgumentException
imagetype - the image type
java.lang.IllegalArgumentException
public void SetInputDoc(java.lang.String inputdoc)
throws java.lang.IllegalArgumentException
inputdoc - the path to the source document that needs to be processed
java.lang.IllegalArgumentException
public void SetLicense(java.lang.String license)
throws com.dessci.mathflow.sdk.license.LicenseException,
java.lang.StringIndexOutOfBoundsException
license - the path to the FlexLM license file or the MathFlow SDK
registration key
com.dessci.mathflow.sdk.license.LicenseException
java.lang.StringIndexOutOfBoundsException
public void SetLogFile(java.lang.String logfile)
throws java.lang.IllegalArgumentException
logfile - the path to the log file
java.lang.IllegalArgumentException
public void SetOperatorDictionary(java.lang.String filepath)
throws java.lang.IllegalArgumentException
filepath - the full path to the operator dictionary file
java.lang.IllegalArgumentException
public void SetOutputDoc(java.lang.String outputdoc)
throws java.lang.IllegalArgumentException
outputdoc - the path to the target document that we output into
java.lang.IllegalArgumentException
public void SetOutputType(java.lang.String outputtype)
throws java.lang.IllegalArgumentException
outputtype - the equation output type for processing the document. The valid
values are "mathml" and "images".
java.lang.IllegalArgumentExceptionGetOutputType()
public void SetPadding(int padding)
throws java.lang.IllegalArgumentException
padding - the padding around the border of the equation image
java.lang.IllegalArgumentException
public void SetPointSize(int pointsize)
throws java.lang.IllegalArgumentException
pointsize - the base point size of the equation
java.lang.IllegalArgumentException
public void SetVerbosity(java.lang.String verbosity)
throws java.lang.IllegalArgumentException
verbosity - the level of processing information that should be displayed
java.lang.IllegalArgumentException
|
Copyright (c) 2015 Design Science All rights reserved |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||