Package org.jmol.applet
Class Jmol
- java.lang.Object
-
- org.jmol.util.GenericApplet
-
- org.jmol.applet.Jmol
-
- All Implemented Interfaces:
JmolAppletInterface,JmolCallbackListener,JmolStatusListener,JmolSyncInterface,WrappedApplet
public class Jmol extends GenericApplet implements WrappedApplet
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanallowJSEvalprivate Appletappletprivate FileDropperdropperprivate booleanisUpdatingprivate JSObjectjsoDocumentprivate intlastMotionEventNumberprivate booleanshowPaintTimeprivate longtimeBeginprivate inttimeCountprivate inttimeLastprivate inttimeTotal-
Fields inherited from class org.jmol.util.GenericApplet
appletObject, callbacks, codeBase, documentBase, doTranslate, fullName, gRight, haveDocumentAccess, haveNotifiedError, htmlName, htRegistry, isJNLP, isJS, isSigned, isStereoSlave, language, mayScript, statusForm, statusText, statusTextarea, viewer, vwrOptions
-
-
Constructor Summary
Constructors Constructor Description Jmol()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddValue(Map<String,Object> info, String key, String putKey, Object value)private static voidcleanRegistry()voiddestroy()protected StringdoEval(String strEval)float[][]doFunctionXY(String functionName, int nX, int nY)float[][][]doFunctionXYZ(String functionName, int nX, int nY, int nZ)protected StringdoSendCallback(String callback, Object[] data, String strInfo)protected voiddoSendJsTextareaStatus(String message)protected voiddoSendJsTextStatus(String message)protected voiddoShowDocument(URL url)protected voiddoShowStatus(String message)private Stringfmt(int num)protected StringgetJmolParameter(String paramName)private voidgetJsObjectInfo(Object[] data)probably never used -- only by Java applet reading directly from the DOM in an XHTML document.protected voidinitOptions()voidpaint(Graphics g)int[]resizeInnerPanel(String data)voidsetApplet(Applet a, boolean isSigned)ObjectsetStereoGraphics(boolean isStereo)private voidshowTimes(int x, int y, Graphics g)private voidstartPaintClock()private voidstopPaintClock()voidupdate(Graphics g)private voidupdate(Graphics g, String source)-
Methods inherited from class org.jmol.util.GenericApplet
createImage, 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, syncScript
-
-
-
-
Field Detail
-
isUpdating
private boolean isUpdating
-
showPaintTime
private boolean showPaintTime
-
timeLast
private int timeLast
-
timeCount
private int timeCount
-
timeTotal
private int timeTotal
-
lastMotionEventNumber
private int lastMotionEventNumber
-
timeBegin
private long timeBegin
-
dropper
private FileDropper dropper
-
applet
private Applet applet
-
allowJSEval
private Boolean allowJSEval
-
jsoDocument
private JSObject jsoDocument
-
-
Method Detail
-
setApplet
public void setApplet(Applet a, boolean isSigned)
- Specified by:
setAppletin interfaceWrappedApplet
-
paint
public void paint(Graphics g)
- Specified by:
paintin interfaceWrappedApplet
-
update
public void update(Graphics g)
- Specified by:
updatein interfaceWrappedApplet
-
destroy
public void destroy()
- Specified by:
destroyin interfaceJmolAppletInterface- Overrides:
destroyin classGenericApplet
-
setStereoGraphics
public Object setStereoGraphics(boolean isStereo)
- Specified by:
setStereoGraphicsin interfaceJmolAppletInterface
-
initOptions
protected void initOptions()
- Specified by:
initOptionsin classGenericApplet
-
cleanRegistry
private static void cleanRegistry()
-
getJmolParameter
protected String getJmolParameter(String paramName)
- Specified by:
getJmolParameterin classGenericApplet
-
doSendJsTextStatus
protected void doSendJsTextStatus(String message)
- Specified by:
doSendJsTextStatusin classGenericApplet
-
doSendJsTextareaStatus
protected void doSendJsTextareaStatus(String message)
- Specified by:
doSendJsTextareaStatusin classGenericApplet
-
startPaintClock
private void startPaintClock()
-
stopPaintClock
private void stopPaintClock()
-
fmt
private String fmt(int num)
-
showTimes
private void showTimes(int x, int y, Graphics g)
-
resizeInnerPanel
public int[] resizeInnerPanel(String data)
- Specified by:
resizeInnerPanelin interfaceJmolStatusListener- Overrides:
resizeInnerPanelin classGenericApplet
-
doSendCallback
protected String doSendCallback(String callback, Object[] data, String strInfo)
- Specified by:
doSendCallbackin classGenericApplet
-
getJsObjectInfo
private void getJsObjectInfo(Object[] data)
probably never used -- only by Java applet reading directly from the DOM in an XHTML document.- Parameters:
data-
-
doEval
protected String doEval(String strEval)
- Specified by:
doEvalin classGenericApplet
-
doFunctionXY
public float[][] doFunctionXY(String functionName, int nX, int nY)
- Specified by:
doFunctionXYin classGenericApplet
-
doFunctionXYZ
public float[][][] doFunctionXYZ(String functionName, int nX, int nY, int nZ)
- Specified by:
doFunctionXYZin classGenericApplet
-
doShowDocument
protected void doShowDocument(URL url)
- Specified by:
doShowDocumentin classGenericApplet
-
doShowStatus
protected void doShowStatus(String message)
- Specified by:
doShowStatusin classGenericApplet
-
-