public class Jmol extends GenericApplet implements javajs.api.JSInterface
| Modifier and Type | Field and Description |
|---|---|
private Map<String,Object> |
htParams |
appletObject, callbacks, codeBase, documentBase, doTranslate, fullName, gRight, haveDocumentAccess, haveNotifiedError, htmlName, htRegistry, isJNLP, isJS, isSigned, isStereoSlave, language, mayScript, statusForm, statusText, statusTextarea, viewer, vwrOptions| Constructor and Description |
|---|
Jmol(Map<String,Object> vwrOptions)
cannot ignore super because it involves preparing fields
|
| Modifier and Type | Method and Description |
|---|---|
int |
cacheFileByName(String fileName,
boolean isAdd) |
void |
cachePut(String key,
Object data) |
protected String |
doEval(String strEval)
return RAW JAVASCRIPT OBJECT, NOT A STRING
|
protected float[][] |
doFunctionXY(String functionName,
int nX,
int nY) |
protected float[][][] |
doFunctionXYZ(String functionName,
int nX,
int nY,
int nZ) |
protected String |
doSendCallback(String callback,
Object[] data,
String strInfo) |
protected void |
doSendJsTextareaStatus(String message) |
protected void |
doSendJsTextStatus(String message) |
protected void |
doShowDocument(URL url) |
protected void |
doShowStatus(String message) |
String |
getFullName() |
Object |
getGLmolView()
This method is only called by JmolGLmol applet._refresh();
|
protected String |
getJmolParameter(String paramName) |
protected void |
initOptions() |
String |
openFile(String fileName)
possibly called from JSmolApplet.js upon start up
|
void |
openFileAsyncSpecial(String fileName,
int flags) |
void |
playAudio(String fileOrDataURI) |
boolean |
processMouseEvent(int id,
int x,
int y,
int modifiers,
long time) |
void |
processTwoPointGesture(float[][][] touches) |
(package private) void |
resizeDisplay(int width,
int height) |
int[] |
resizeInnerPanel(String data) |
void |
setDisplay(Object canvas) |
void |
setScreenDimension(int width,
int height) |
boolean |
setStatusDragDropped(int mode,
int x,
int y,
String fileName) |
Object |
setStereoGraphics(boolean isStereo) |
void |
startHoverWatcher(boolean enable) |
void |
update() |
createImage, destroy, eval, functionXY, functionXYZ, getAppletInfo, getBooleanValue, getJSpecViewProperty, getModelIndexFromId, getProperty, getProperty, getPropertyAsJSON, getPropertyAsJSON, getPropertyAsString, getPropertyAsString, getRegistryInfo, getValue, handleEvent, init, loadDOMNode, loadInline, loadInline, loadInline, loadInline, loadInlineArray, loadInlineString, notifyCallback, notifyEnabled, output, register, script, scriptCheck, scriptNoWait, scriptWait, scriptWait, scriptWaitOutput, setCallbackFunction, showUrl, syncScriptpublic Object setStereoGraphics(boolean isStereo)
setStereoGraphics in interface JmolAppletInterfaceprotected void initOptions()
initOptions in class GenericAppletprotected String getJmolParameter(String paramName)
getJmolParameter in class GenericAppletprotected void doSendJsTextStatus(String message)
doSendJsTextStatus in class GenericAppletprotected void doSendJsTextareaStatus(String message)
doSendJsTextareaStatus in class GenericAppletprotected float[][] doFunctionXY(String functionName, int nX, int nY)
doFunctionXY in class GenericAppletprotected float[][][] doFunctionXYZ(String functionName, int nX, int nY, int nZ)
doFunctionXYZ in class GenericAppletprotected void doShowDocument(URL url)
doShowDocument in class GenericAppletprotected String doSendCallback(String callback, Object[] data, String strInfo)
doSendCallback in class GenericAppletprotected String doEval(String strEval)
doEval in class GenericAppletprotected void doShowStatus(String message)
doShowStatus in class GenericAppletpublic Object getGLmolView()
public String openFile(String fileName)
fileName - public int cacheFileByName(String fileName, boolean isAdd)
cacheFileByName in interface javajs.api.JSInterfacepublic void cachePut(String key, Object data)
cachePut in interface javajs.api.JSInterfacepublic String getFullName()
getFullName in interface javajs.api.JSInterfacepublic boolean processMouseEvent(int id,
int x,
int y,
int modifiers,
long time)
processMouseEvent in interface javajs.api.JSInterfacepublic void setDisplay(Object canvas)
setDisplay in interface javajs.api.JSInterfacepublic boolean setStatusDragDropped(int mode,
int x,
int y,
String fileName)
setStatusDragDropped in interface javajs.api.JSInterfacepublic void startHoverWatcher(boolean enable)
startHoverWatcher in interface javajs.api.JSInterfacepublic void update()
update in interface javajs.api.JSInterfacepublic void openFileAsyncSpecial(String fileName, int flags)
openFileAsyncSpecial in interface javajs.api.JSInterfacepublic void processTwoPointGesture(float[][][] touches)
processTwoPointGesture in interface javajs.api.JSInterfacepublic void setScreenDimension(int width,
int height)
setScreenDimension in interface javajs.api.JSInterfacepublic int[] resizeInnerPanel(String data)
resizeInnerPanel in interface JmolStatusListenerresizeInnerPanel in class GenericAppletvoid resizeDisplay(int width,
int height)
public void playAudio(String fileOrDataURI)
playAudio in class GenericApplet