GeoGebra Applet Parameters

From GeoGebraWiki

Jump to: navigation, search

GeoGebra Applet Parameters

GeoGebra 3.2
Markus Hohenwarter, Michael Borcherds

To include a GeoGebra Applet into an HTML page you could use "Export dynamic worksheet as webpage" in "File, Export" menu. However, for more advanced users, it is also possible to include the applet tag by hand.

Applet Tag

You can use the following lines to include a GeoGebra construction in your html page. The file "geogebra.jar" and the construction file (e.g. "circle.ggb") have to be placed in the directory of your html page.

<applet code="geogebra.GeoGebraApplet"
    width=500 height=300>
  <param name="filename" value="circle.ggb"/>
  <param name="framePossible" value="false"/>
Please <a href="">install Java 1.4</a> (or later) to use this page.

You may change width and height to your desired values. The parameters are explained next.

Applet Parameters

The following parameters may be used within the applet tag.

name value description since
filename e.g. "circle.ggb" filename of construction file (ggb file) 2.5
type button if you use this parameter the applet will only show a button to open the GeoGebra application frame 2.5
framePossible true or false states if a double click on the drawing pad should open the GeoGebra application frame. This parameter is ignored if the type was set to "button", default: true 2.5
bgcolor e.g. "#FFFFFF" for white background color (as hex rgb string) of the applet. This parameter is only used if type "button" was set, default: white 2.5
borderColor e.g. "#FFFFFF" for white color of the border line drawn around the applet panel (as hex rgb string), default: gray 3.0
enableRightClick true or false states whether right clicks should be handled by the applet. Setting this parameter to "false" disables context menus, properties dialogs and right-click-zooming. Default: true 3.0
enableLabelDrags true or false states whether labels can be dragged. Default: true 3.2
enableShiftDragZoom true or false states whether the drawing pad should be moveable using Shift + mouse drag (or. Ctrl + mouse drag) or zoomable using Shift + mouse wheel (or Ctrl + mouse wheel). Setting this parameter to "false" disables moving and zooming of the drawing pad. Default: true 3.0
showMenuBar true or false states whether the menubar of GeoGebra should be shown in the applet, default: false 2.5
showToolBar true or false states whether the toolbar with the construction mode buttons should be shown in the applet, default: false 2.5
showToolBarHelp true or false states whether the toolbar help text right to the toolbar buttons should be shown in the applet 3.0
customToolBar e.g. "0 | 1 2 | 3 , 4 || 5 6 7" sets the toolbar according to a custom toolbar string where the int values are Toolbar Mode Values, "," adds a separator within a menu, "|" starts a new menu and "||" adds a separator in the toolbar before starting a new menu. 2.5
showAlgebraInput true or false states whether the algebra input line

(with input field, greek letters and command list) should be shown in

the applet
showResetIcon true or false states whether a small icon (GeoGebra

ellipse) should be shown in the upper right corner of the applet. Clicking on this icon resets the applet (i.e. it reloads the file given

in the filename parameter).
language iso language string

en ... English
fr ... French
it ... Italian
de ... German
es ... Spanish
sl ... Slovenian

zh ... Chinese
GeoGebra tries to set your local

language automatically (if it is available among the supported languages, of course). The default language for unsupported languages is English.
If you want to specify a certain language manually, please use this

iso country string

AT ... Austria

This parameter only makes sense if you use it together with the language parameter. 2.5
eg -Xmx256m This parameter allows you to specify more memory (in megabytes) for the GeoGebra applet
Works only in Java 6 update 10 or later
(will have no effect in earlier versions)

The following lines are an example for a "button" applet that only consists of a button to open GeoGebra's window. The background of the applet (i.e. the area around the button) is set to white (#FFFFFF).

<applet code="geogebra.GeoGebraApplet"
    width=200 height=40>
<param name="filename" value="circle.ggb"/>
<param name="type" value="button"/>
<param name="bgcolor" value="#FFFFFF"/>
Please <a href="">install Java 1.4</a> (or later) to use this page.