Package org.jmol.api
Interface JmolAppletInterface
- All Superinterfaces:
JmolSyncInterface
- All Known Implementing Classes:
GenericApplet
,Jmol
This is the API of methods that are available to JavaScript
via LiveConnect to the Jmol applet.
DONT FORGET TO ADD THESE FUNCTIONS TO src/JmolApplet.java !!!
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
int
getProperty
(String infoType) getProperty
(String infoType, String paramInfo) getPropertyAsJSON
(String infoType) getPropertyAsJSON
(String infoType, String paramInfo) getPropertyAsString
(String infoType) getPropertyAsString
(String infoType, String paramInfo) boolean
handleEvent
(Event event) loadDOMNode
(Object DOMNode) loadInline
(String strModel) Deprecated.loadInline
(String[] strModels) Deprecated.loadInline
(String[] strModels, String script) Deprecated.loadInline
(String strModel, String script) Deprecated.loadInlineArray
(String[] strModels, String script, boolean isAppend) loadInlineString
(String strModel, String script, boolean isAppend) void
notifyAudioEnded
(Object htParams) void
scriptCheck
(String script) scriptNoWait
(String script) scriptWait
(String script) scriptWait
(String script, String statusParams) scriptWaitOutput
(String script) void
setCallback
(String name, Object callbackObject) setStereoGraphics
(boolean isStereo) Methods inherited from interface org.jmol.api.JmolSyncInterface
getJSpecViewProperty, register, syncScript
-
Method Details
-
setCallback
-
handleEvent
-
getAppletInfo
String getAppletInfo() -
destroy
void destroy() -
setStereoGraphics
-
script
-
scriptCheck
-
scriptWait
-
scriptWaitOutput
-
scriptWait
-
scriptNoWait
-
getModelIndexFromId
- Parameters:
id
- some_id, filename#id, or ~fileNo.modelNo added ".basemodel" indicates to get the first model in a series from a JDX-MOL file.- Returns:
- model index if found; -2 if file found but model not found -2 if no file indicated and no model found -1 if no such file
-
getProperty
-
getPropertyAsString
-
getPropertyAsString
-
getPropertyAsJSON
-
getPropertyAsJSON
-
getProperty
-
loadInlineString
-
loadInlineArray
-
loadDOMNode
-
notifyAudioEnded
-
loadInline
Deprecated.- Parameters:
strModel
-- Returns:
- error or null
-
loadInline
Deprecated.- Parameters:
strModels
-- Returns:
- error or null
-
loadInline
Deprecated.- Parameters:
strModel
-script
-- Returns:
- error or null
-
loadInline
Deprecated.- Parameters:
strModels
-script
-- Returns:
- error or null
-