Rev 4895 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4158 | bpr | 1 | slib_lang_exists_tmp=yes |
2 | |||
3 | slib_title=Geogebra Applet |
||
4 | slib_parms=1\ |
||
5 | ,option or applet command for javascript, one by line or joined by a semicolon |
||
6 | |||
7 | slib_comment=the available applet commands are either the definition of an object\ |
||
8 | <br>or javascript methods. For syntax details on how to create objects, you can report to the GeoGebra help page : \ |
||
9 | <a target="wims_external" href="http://www.geogebra.org/help/docufr/"> www.geogebra.org/help/docufr </a>\ |
||
10 | There are a lot of available javascript methods : for example, \ |
||
11 | <tt>evalCommand setValue setColor setVisible \ |
||
12 | setLabelVisible setFixed setTrace\ |
||
13 | setAxesVisible setGridVisible setCoordSystem\ |
||
14 | deleteObject renameObject setLayerVisible\ |
||
15 | setLineStyle setAnimationSpeed startAnimation</tt>\ |
||
16 | The complete list <a target="wims_external" href="http://www.geogebra.org/en/wiki/index.php/GeoGebra_JavaScript_Methods"> is here.</a>\ |
||
17 | <br><br>Allowed options are the followings. See <a target="wims_external" href="http://www.geogebra.org/en/wiki/index.php/GeoGebra_Applet_Parameters"> here for details.</a>\ |
||
18 | <br><tt>height</tt> default 300\ |
||
19 | <br><tt>width</tt> default 300\ |
||
20 | <br><tt>file</tt> default none. Be careful : the .ggb file must be in the "image" \ |
||
21 | directory if you use the slib in an OEF exercise, \ |
||
22 | <br>in the "files" directory if you use the slib in a document ;\ |
||
23 | <br>otherwise you have to use relative adress from module directory.\ |
||
24 | <br><tt>showToolBar</tt> default false\ |
||
25 | <br><tt>customToolBar</tt> default none. Be careful : no comma is allowed and if you want \ |
||
26 | <br>to separate two integers by a space-character, type a "@" instead of this space-character ! \ |
||
27 | The list of the icones <a target="wims_external" href="http://www.geogebra.org/source/program/doc/geogebra_modes.html">is here</a>\ |
||
28 | <br><tt>showMenuBar</tt> default false\ |
||
29 | <br><tt>showAlgebraInput</tt> default false\ |
||
30 | <br><tt>showResetIcon</tt> default false (Be careful : this option enable to \ |
||
31 | reset the applet, but without the construction done from wims)\ |
||
32 | <br><tt>showToolBarHelp</tt> default true\ |
||
33 | <br><tt>enableRightClick</tt> default true (Be careful : by right-clicking \ |
||
34 | on an object, the student can modify all the objects in the construction !)\ |
||
35 | <br><tt>language</tt> default fr\ |
||
36 | <br><tt>enableLabelDrags</tt> default true\ |
||
37 | <br><tt>enableShiftDragZoom</tt> default true\ |
||
38 | <br><tt>errorDialogsActive</tt> default true\ |
||
39 | <br><tt>debug</tt> default false\ |
||
40 | <br><tt>number</tt> number of the applet in the html page (default 1) |
||
41 | <br><tt>EXAMPLE\ |
||
42 | <br><tt>\integer{x=random(3)}\ |
||
43 | <br><tt>\text{appletcommand= Z=(\x,3.78)\\ |
||
44 | <br><tt>W=(6.2,2.8)\\ |
||
45 | <br><tt>Ellipse[Z,W,5]\\ |
||
46 | <br><tt>u=Line[W,Z]}\ |
||
47 | <br><tt>#the language can be setted in the options\ |
||
48 | <br><tt>\text{option= showToolBar=true\ |
||
49 | <br><tt>language=en\ |
||
50 | <br><tt>customToolBar="0|5@40 10||1|2"\ |
||
51 | <br><tt>width=600\ |
||
52 | <br><tt>height=500\ |
||
53 | <br><tt>number=1</tt> |
||
54 | <br><tt>#to hide the algebra window (on the left), use a ".ggb" file in the options\ |
||
55 | <br><tt>\text{applet=slib(geo2D/geogebra3 \appletcommand ; \option)}\ |
||
56 | <br><tt>\statement{\applet} |