![]() |
![]() |
![]() |
![]() |
Mathador Architecture
Mathador has been implemented in Java according to the Model-View-Controller
design architecture.
The model components are completely separated from the view components, this
allow a possible reusing of the model components with other view and controller.
Mathador Box Model
The model part of the project is implemented according to the box model.
A box model is a layout technique that adjust the position of some box on the
screen. A box is a sort of graphical container for a particular kind of mathematical
notation. There are boxes for a large variety of mathematical notations such
as numbers, identifiers, fractions, radicals and others.
Mathador Exendible Formats
Mathador use the MathML format for load and save expressions.
Mathador architecture is modular, extensible and reusable with respect to the
format supported.
The parser/preprocessor and the serializer provided with the distribution code
are only an example of the possible parsers, preprocessors or serializers that
can be connected with Mathador. Infact, new versions of these components can
be added to Mathador without recompiling the existing code; Mathador can be
informed by an appropriate applet parameter include in the HTML code in order
to use an other parser (or preprocessor or serializer).
The default parser, preprocessor and serializer implemented in Mathador support
only the MathML format, but it is possible to develope a component for any other
format like TeX/LaTeX.
Mathador use the MathML dtd of the W3C for validating the documents.
In the default applet (MathApplet is the editor and MathWebViewer is the viewer) you can use the following HTML parameter:
N.B.: In the case that you use the source_string parameter, you must use the single quote ' instead of the double quote " in your code fragment.
For accessing Mathador from Javascript you can use an id attribute in your applet tag and you must call the following methods: