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 Boolean
allowJSEval
private Applet
applet
private FileDropper
dropper
private boolean
isUpdating
private JSObject
jsoDocument
private int
lastMotionEventNumber
private boolean
showPaintTime
private long
timeBegin
private int
timeCount
private int
timeLast
private int
timeTotal
-
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 void
addValue(Map<String,Object> info, String key, String putKey, Object value)
private static void
cleanRegistry()
void
destroy()
protected String
doEval(String strEval)
float[][]
doFunctionXY(String functionName, int nX, int nY)
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)
private String
fmt(int num)
protected String
getJmolParameter(String paramName)
private void
getJsObjectInfo(Object[] data)
probably never used -- only by Java applet reading directly from the DOM in an XHTML document.protected void
initOptions()
void
paint(Graphics g)
int[]
resizeInnerPanel(String data)
void
setApplet(Applet a, boolean isSigned)
Object
setStereoGraphics(boolean isStereo)
private void
showTimes(int x, int y, Graphics g)
private void
startPaintClock()
private void
stopPaintClock()
void
update(Graphics g)
private void
update(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:
setApplet
in interfaceWrappedApplet
-
paint
public void paint(Graphics g)
- Specified by:
paint
in interfaceWrappedApplet
-
update
public void update(Graphics g)
- Specified by:
update
in interfaceWrappedApplet
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceJmolAppletInterface
- Overrides:
destroy
in classGenericApplet
-
setStereoGraphics
public Object setStereoGraphics(boolean isStereo)
- Specified by:
setStereoGraphics
in interfaceJmolAppletInterface
-
initOptions
protected void initOptions()
- Specified by:
initOptions
in classGenericApplet
-
cleanRegistry
private static void cleanRegistry()
-
getJmolParameter
protected String getJmolParameter(String paramName)
- Specified by:
getJmolParameter
in classGenericApplet
-
doSendJsTextStatus
protected void doSendJsTextStatus(String message)
- Specified by:
doSendJsTextStatus
in classGenericApplet
-
doSendJsTextareaStatus
protected void doSendJsTextareaStatus(String message)
- Specified by:
doSendJsTextareaStatus
in 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:
resizeInnerPanel
in interfaceJmolStatusListener
- Overrides:
resizeInnerPanel
in classGenericApplet
-
doSendCallback
protected String doSendCallback(String callback, Object[] data, String strInfo)
- Specified by:
doSendCallback
in 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:
doEval
in classGenericApplet
-
doFunctionXY
public float[][] doFunctionXY(String functionName, int nX, int nY)
- Specified by:
doFunctionXY
in classGenericApplet
-
doFunctionXYZ
public float[][][] doFunctionXYZ(String functionName, int nX, int nY, int nZ)
- Specified by:
doFunctionXYZ
in classGenericApplet
-
doShowDocument
protected void doShowDocument(URL url)
- Specified by:
doShowDocument
in classGenericApplet
-
doShowStatus
protected void doShowStatus(String message)
- Specified by:
doShowStatus
in classGenericApplet
-
-