public interface MathViewer
Modifier and Type | Method and Description |
---|---|
void |
filter(java.lang.Object root)
Render all the MathML expressions and plot all the constructions inside a HTML page.
|
void |
filterConstructions(java.lang.Object root)
Plot all the Graph constructions inside a HTML page.
|
void |
filterMathML(java.lang.Object root)
Render all the MathML expressions inside a HTML page.
|
java.lang.Object |
graph(java.lang.String construction)
Use Wiris Graph to create a live view of the construction, presented in the GeometryFile format.
|
java.lang.Object |
graph(java.lang.String construction,
java.lang.String initialContent) |
java.lang.Object |
plot(java.lang.String construction)
Draw a construction, presented in the GeometryFile format, with Wiris Graph.
|
java.lang.Object |
plot(java.lang.String construction,
java.lang.String width,
java.lang.String height)
Same as
plot(String) but allows customization of the plotter dimensions. |
java.lang.Object |
render(java.lang.String mathml)
Draw a MathML expression using MathType so it can be displayed.
|
java.lang.Object |
renderCorrectAnswer(QuestionInstance instance,
Slot slot,
AuthorAnswer authorAnswer)
Render the value of the correct answer contained in the given author answer,
using the syntax of the given slot.
|
java.lang.Object |
thumbnail(java.lang.String construction)
Does the same as then
plot(String) function but the resulting plot has a reduced image that acts
as a thumbnail of the actual plot, rather than being full-scale. |
java.lang.Object renderCorrectAnswer(QuestionInstance instance, Slot slot, AuthorAnswer authorAnswer)
render(String)
or plot(String)
depending on whether Slot.getSyntax()
is SyntaxName.MATH
or SyntaxName.GRAPHIC
.java.lang.Object render(java.lang.String mathml)
java.lang.Object plot(java.lang.String construction)
construction
- A construction in the GeometryFile format.graph(String)
,
thumbnail(String)
,
plot(String, String, String)
java.lang.Object plot(java.lang.String construction, java.lang.String width, java.lang.String height)
plot(String)
but allows customization of the plotter dimensions.width
- The desired width, in pixels.height
- The desired height, in pixels.java.lang.Object thumbnail(java.lang.String construction)
plot(String)
function but the resulting plot has a reduced image that acts
as a thumbnail of the actual plot, rather than being full-scale.plot(String)
,
graph(String)
java.lang.Object graph(java.lang.String construction)
construction
- A construction in the GeometryFile format.plot(String)
,
graph(String)
java.lang.Object graph(java.lang.String construction, java.lang.String initialContent)
void filter(java.lang.Object root)
filterMathML(java.lang.Object)
and filterConstructions(java.lang.Object)
.
Only available in JavaScript.root
- The HTML document to be rendered.void filterMathML(java.lang.Object root)
root
- The HTML document to be rendered.void filterConstructions(java.lang.Object root)
root
- The HTML document to be rendered.Copyright © 2021 Maths for More S.L. All Rights Reserved.