Applet parameters
On this page:
<h2>Typical editor applet</h2>A typical MathFlow SDK Editor applet call looks similar to this example:
<applet archive="MFSimpleApplet.jar" codebase="lib" code="com.dessci.mathflow.sdk.editor.SimpleApplet" name="mySimpleApplet" width="690" height="200"> <param name="mathML" value="<math><mi>x</mi><mo>-</mo><mn>4</mn></math>"</applet>
The width and height can be set arbitrarily, but the natural width of the standard toolbar is 690px.
<h2>Applet optional parameters</h2>MathFlow SDK Editor applets recognize the following optional parameters:
Input Parameter | Description |
---|---|
autoItalics | The |
autoStretchy | The |
background | The |
|commonFunctionList (Style and Structure Editor Applets only)|The commonFunctionList
parameter provides a list of common function names that the system will use to determine whether common elementary functions such as "sin" will be automatically recognized, typeset and marked up as functions. The legal values for this parameter is a comma separated list of function names. The default list is: "arccos,arcsin,arctan,arg,cos,cosh,cot,coth,cov,csc,deg,det,dim,exp,gcd, glb,hom,inf,int,ker,lg,lim,lm,ln,log,lub,max,min,mod,sec,sgn,sin,sinh,sup,tan,tanh,var".|
ddDoubleStruck | The |
displayStyle | The |
enableUnsignedClipboard | The |
pointSize | The |
foreground | The |
mathML | The |
p2cConversionContext | The |
p2cFunctionNames | The |
preferSystemFonts | The |
recognizeCommonFunctions | The |
spacebarBehavior | The |
toolbarMarkup | The value of the |
upperGreekNormal | The |
urlEncodedMathML | The |
|usePredefinedToolbar (Style Editor Applet only)|The usePredefinedToolbar
parameter determines which toolbar will be displayed. The legal values for this parameter are "#standard", "#extrasymbols", "#basic", "#websafe" and "#custom" with "#standard" as the default. Note that "#custom" is only available if toolbarMarkup is also supplied. This will not work with the Structure Applet, because has its own separate toolbar menu.|
Four applet parameters are available only on the Mac:
Input Parameter | Description |
---|---|
disableMacButtons | When used on a Mac, the MathFlow SDK Editor Applet displays a "Title:" input field and a "Submit" button at the bottom of the window. This parameter can be used prevent these components from being displayed. |
macButtonBackground | This parameter sets the background color of the additional panels that appear in the MathFlow SDK Editor Applet user interface when running on the Mac. On other platforms, the MathFlow SDK Editor Applet has no background area to color. Values should be specified as hexadecimal RGB values in the form "#rrggbb" or "#rgb," or using CSS2 color keywords, such as "blue." |
title | When used on a Mac, the MathFlow SDK Editor Applet displays a "Title:" input field and a "Submit" button at the bottom of the window. This parameter can be used to set the initial value of the "Title" input field. |
url | On a Mac, a "Submit" button appears at the bottom of the editor window. When the user clicks that button, the applet will make an HTTP request to the URL specified by this parameter, with the MathML markup for the current equation, and the value of the "Title" input field appended as CGI arguments. See MathFlow SDK Editor Applets on the Mac for further details. |