Jump to navigation

Class: JMEDisplayer

Numbas.jme.display.JMEDisplayer

new JMEDisplayer(settings, scope)

An object which can convert a JME tree into some display format.

Parameters:
Name Type Description
settings Numbas.jme.display.displayer_settings
scope Numbas.jme.Scope
Source:
See:

Methods

(abstract) complex_number(n) → {*}

Display a complex number.

Parameters:
Name Type Description
n number
Returns:
Type Description
*
Source:
See:

getConstants()

Fill the dictionaries of constants from the scope. Done once, on creation of the Texifier.

Source:

(abstract) rational_number(n) → {*}

Display a number as a fraction.

Parameters:
Name Type Description
n number
Returns:
Type Description
*
Source:
See:

(abstract) real_number(n) → {*}

Display a number as a decimal.

Parameters:
Name Type Description
n number
Returns:
Type Description
*
Source:
See:

(abstract) render(tree) → {*}

Convert the given JME tree to the output format.

Parameters:
Name Type Description
tree Numbas.jme.tree
Returns:
Type Description
*
Source: