Comments:Reference:Applet Parameters
GeoGebra Manual
지오지브라 애플릿을 HTML 문서에 포함시키려면, 파일 메뉴에서 "상호작용적인 워크시트를 웹페이지로 저장"을 사용한다. 고급 사용자의 경우, 직접 애플릿 태그를 작성할 수도 있다.
애플릿 태그
html 페이지에 다음 코드를 포함시키면, 지오지브라 워크시트가 나타난다. 지오지브라 파일은 html 페이지의 동일한 디렉토리에 위치해야 한다. (예. "circle.ggb")
<applet code="geogebra.GeoGebraApplet" archive="geogebra.jar" codebase="http://jars.geogebra.org/webstart/" width="500" height="300"> <param name="filename" value="circle.ggb" /> <param name="framePossible" value="false" /> Please install Java 1.5 (or later) from www.java.com to use this page. </applet>
"파일 이름" 변수 대신, "ggbBase64" 변수를 사용하면 Base64로 인코딩된 코드를 사용할 수 있다. 코드를 얻으려면, Ctrl + Shift + M를 누른다. -- 코드와 애플릿 태그가 클립보드에 저장된다.
Codebase
Codebase 는 지오지브라 jar 파일의 위치를 정의한다. 다음 값으로 설정할 수 있다.
- http://jars.geogebra.org/webstart/4.0/unsigned/ – 서명되지 않은 지오지브라 버전이 사용된다. 이 경우, 지오지브라는 사용자의 하드웨어에 접근할 수 없으며(되돌리기, 다시 실행, 저장, 인쇄 등을 사용할 수 없음), 사용자가 보안 위험을 인식하고 있는지 확인할 필요가 없다.
- http://jars.geogebra.org/webstart/4.0 – 되돌리기, 다시 실행, 저장, 인쇄 기능이 필요한 경우 사용
./
와 같은 로컬 경로– geogebra.org 에 연결되지 않고, 지오지브라를 사용할 경우 유용하다. 이 경우 앞에서 언급된 URL에서 모든 jar 파일을 다운로드 받아 로컬 경로에 저장하는 것이 필요하다. (codebase는./
, jar 파일은 워크시트와 동일한 경로에 저장)
애플릿 변수
다음 변수는 애플릿 태그에서 사용될 수 있다.
Name | Value | Description | Since |
---|---|---|---|
filename | 예. file.ggb
|
지오지브라 파일 경로 | 2.5 |
type | button
|
지오지브라 실행화면을 여는 버튼만 보이고 싶은 경우에 사용. 지오지브라 4 이후부터는 사용하지 않는 것을 권장 |
2.5 - 3.2 |
framePossible | true 또는 false
|
기하창에서 더블클릭을 하면 지오지브라 실행화면이 나타나는지를 지정. 이 변수는 type이 "button"으로 설정되면 무시된다. 기본설정: true 지오지브라 4 이후부터는 사용하지 않는 것을 권장 |
2.5 - 3.2 |
bgcolor | 예. 흰색인 경우 #FFFFFF
|
애플릿의 배경 색상(hex rgb 문자열)을 지정. 이 변수는 type이 "button"으로 설정되는 경우만 사용. 기본설정: 흰색 | 2.5 |
borderColor | 예. 흰색인 경우 #FFFFFF
|
애플릿 패널 경계 색상(hex rgb 문자열)을 지정. 기본설정: 회색 | 3.0 |
enableChooserPopups | true 또는 false
|
다양한 대상을 선택했을 때 팝업 메뉴가 나타나는지를 설정. 기본설정: true | 3.2 |
enableRightClick | true 또는 false
|
애플릿에서 오른쪽 마우스 클릭이 가능한지 설정. 이 변수가 "false" 인 경우, 문맥 메뉴, 설정사항 대화상자, 오른쪽 마우스 클릭 확대 등을 사용할 수 없다. 기본설정: true. NB 또한, 몇몇 단축키에 대한 사용 가능 여부를 지정한다. 예. Delete 와 Ctrl + R (모든 대상 재계산) | 3.0 |
enableLabelDrags | true 또는 false
|
레이블이 드래그 가능한지를 설정. 기본설정: true | 3.2 |
allowRescaling | true 또는 false
|
애플릿이 불려지거나, 창의 크기가 변경되었을 때 크기를 조정하는지를 설정. (예. 브라우저 확대) 스프레드시트나 대수창이 있는 경우 사용할 수 없다. 기본설정: false | 3.2 |
enableShiftDragZoom | true 또는 false
|
기하창이 Shift + 마우스 드래그 (또는 Ctrl + mouse drag) 를 사용하여 이동이 가능하거나, Shift + 마우스 휠 (또는 Ctrl + 마우스 휠)로 확대 가능한지 설정. 이 변수를 "false"로 설정하면 기하창을 움직이거나 확대할 수 없다. 기본설정: true | 3.0 |
errorDialogsActive | true 또는 false
|
적합하지 않은 입력이 이루어졌을 때, 입력창 또는 자바스크립트를 이용하여 오류 메시지를 보여줄지를 설정. 기본설정: true | 3.2 |
showMenuBar | true 또는 false
|
지오지브라의 도구상자가 애플릿에서 나타나도록 할지를 설정. 기본설정: false | 2.5 |
showToolBar | true 또는 false
|
애플릿에서 구성 모드 버튼이 있는 도구상자가 나타나도록 할지를 설정. 기본설정: false | 2.5 |
maxIconSize | 16 to 32 | 도구상자에서 사용된 아이콘의 최대 크기. 기본설정: 32 | 3.2 |
showToolBarHelp | true 또는 false
|
애플릿에서 도구 도움말이 나타나도록 할지를 설정. | 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. Custom tools are numbered 1001, 1002, etc in GeoGebra 3.2 and 100 001, 100 002, etc from GeoGebra 4.
|
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 | 2.5 |
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). | 2.5 |
language | iso language string
en ... English fr ... French it ... Italian de ... German es ... Spanish pt ... Portuguese 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 parameter. | 2.5 |
country | iso country string, e.g. AT for Austria
|
This parameter only makes sense if you use it together with the language parameter. | 2.5 |
ggbOnInitParam | eg applet2
|
This parameter allows you to specify the argument passed to the JavaScript function ggbOnInit(), which is called once the applet is fully initialised. This is useful when you have multiple applets on a page - see http://www.geogebra.org/source/program/applet/geogebra_applet_java2java.htm (will have no effect in earlier versions) | 3.2 |
java_arguments | 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) | 3.2 |
allowStyleBar | true or false
|
Default: false Determines whether the Style Bar can be shown (or will be shown if just Graphics View 1 is showing) |
4.0 |
useBrowserForJS | true or false
|
Default: true Determines whether Rhino (built into GeoGebra) or the browser will be used to run JavaScript. |
4.0 |
예
예: 다음 코드는 지오지브라 창을 여는 버튼을 포함하는 "버튼" 애플릿의 예이다. 애플릿의 배경 (즉, 버튼 주변의 영역) 은 흰색 (#FFFFFF)으로 설정된다.
<applet code="geogebra.GeoGebraApplet" archive="geogebra.jar" width=200 height=40> <param name="filename" value="circle.ggb" /> <param name="type" value="button" /> <param name="bgcolor" value="#FFFFFF" /> Please <a href="http://java.sun.com/getjava">install Java 1.4</a> (or later) to use this page. </applet>