public class Jmol extends GenericApplet implements javajs.api.JSInterface
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.Object> vwrOptions)
cannot ignore super because it involves preparing fields
|
| Modifier and Type | Method and Description |
|---|---|
int |
cacheFileByName(java.lang.String fileName,
boolean isAdd) |
void |
cachePut(java.lang.String key,
java.lang.Object data) |
protected java.lang.String |
doEval(java.lang.String strEval)
return RAW JAVASCRIPT OBJECT, NOT A STRING
|
protected float[][] |
doFunctionXY(java.lang.String functionName,
int nX,
int nY) |
protected float[][][] |
doFunctionXYZ(java.lang.String functionName,
int nX,
int nY,
int nZ) |
protected java.lang.String |
doSendCallback(java.lang.String callback,
java.lang.Object[] data,
java.lang.String strInfo) |
protected void |
doSendJsTextareaStatus(java.lang.String message) |
protected void |
doSendJsTextStatus(java.lang.String message) |
protected void |
doShowDocument(java.net.URL url) |
protected void |
doShowStatus(java.lang.String message) |
java.lang.String |
getFullName() |
java.lang.Object |
getGLmolView()
This method is only called by JmolGLmol applet._refresh();
|
protected java.lang.String |
getJmolParameter(java.lang.String paramName) |
protected void |
initOptions() |
java.lang.String |
openFile(java.lang.String fileName)
possibly called from JSmolApplet.js upon start up
|
void |
openFileAsyncSpecial(java.lang.String fileName,
int flags) |
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(java.lang.String data) |
void |
setDisplay(java.lang.Object canvas) |
void |
setScreenDimension(int width,
int height) |
boolean |
setStatusDragDropped(int mode,
int x,
int y,
java.lang.String fileName) |
java.lang.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, notifyAudioEnded, notifyCallback, notifyEnabled, output, register, script, scriptCheck, scriptNoWait, scriptWait, scriptWait, scriptWaitOutput, setCallbackFunction, showUrl, syncScriptpublic Jmol(java.util.Map<java.lang.String,java.lang.Object> vwrOptions)
vwrOptions - public java.lang.Object setStereoGraphics(boolean isStereo)
setStereoGraphics in interface JmolAppletInterfaceprotected void initOptions()
initOptions in class GenericAppletprotected java.lang.String getJmolParameter(java.lang.String paramName)
getJmolParameter in class GenericAppletprotected void doSendJsTextStatus(java.lang.String message)
doSendJsTextStatus in class GenericAppletprotected void doSendJsTextareaStatus(java.lang.String message)
doSendJsTextareaStatus in class GenericAppletprotected float[][] doFunctionXY(java.lang.String functionName,
int nX,
int nY)
doFunctionXY in class GenericAppletprotected float[][][] doFunctionXYZ(java.lang.String functionName,
int nX,
int nY,
int nZ)
doFunctionXYZ in class GenericAppletprotected void doShowDocument(java.net.URL url)
doShowDocument in class GenericAppletprotected java.lang.String doSendCallback(java.lang.String callback,
java.lang.Object[] data,
java.lang.String strInfo)
doSendCallback in class GenericAppletprotected java.lang.String doEval(java.lang.String strEval)
doEval in class GenericAppletprotected void doShowStatus(java.lang.String message)
doShowStatus in class GenericAppletpublic java.lang.Object getGLmolView()
public java.lang.String openFile(java.lang.String fileName)
fileName - public int cacheFileByName(java.lang.String fileName,
boolean isAdd)
cacheFileByName in interface javajs.api.JSInterfacepublic void cachePut(java.lang.String key,
java.lang.Object data)
cachePut in interface javajs.api.JSInterfacepublic java.lang.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(java.lang.Object canvas)
setDisplay in interface javajs.api.JSInterfacepublic boolean setStatusDragDropped(int mode,
int x,
int y,
java.lang.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(java.lang.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(java.lang.String data)
resizeInnerPanel in interface JmolStatusListenerresizeInnerPanel in class GenericAppletvoid resizeDisplay(int width,
int height)