public abstract class GenericApplet extends Object implements JmolAppletInterface, JmolStatusListener
| Modifier and Type | Field and Description |
|---|---|
protected Object |
appletObject |
protected Map<CBK,String> |
callbacks |
protected String |
codeBase |
protected String |
documentBase |
protected boolean |
doTranslate |
protected String |
fullName |
protected Object |
gRight |
protected boolean |
haveDocumentAccess |
protected boolean |
haveNotifiedError |
protected String |
htmlName |
protected static Map<String,Object> |
htRegistry |
protected boolean |
isJNLP |
protected boolean |
isJS |
protected boolean |
isSigned |
protected boolean |
isStereoSlave |
protected String |
language |
private boolean |
loading |
protected boolean |
mayScript |
private javajs.util.SB |
outputBuffer |
private static int |
SCRIPT_CHECK |
private static int |
SCRIPT_NOWAIT |
private static int |
SCRIPT_WAIT |
protected String |
statusForm |
protected String |
statusText |
protected String |
statusTextarea |
private String |
syncId |
protected Viewer |
viewer |
protected Map<String,Object> |
vwrOptions |
| Constructor and Description |
|---|
GenericApplet() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
checkIn(String name,
Object applet) |
(package private) static void |
checkOut(String name) |
private void |
consoleMessage(String message) |
String |
createImage(String fileName,
String type,
Object text_or_bytes,
int quality)
Starting with Jmol 11.8.RC5, for a context where the Jmol application
is embedded in another application simply to send the returned message
to the application.
|
void |
destroy() |
protected abstract String |
doEval(String strEval) |
protected abstract float[][] |
doFunctionXY(String functionName,
int nX,
int nY) |
protected abstract float[][][] |
doFunctionXYZ(String functionName,
int nX,
int nY,
int nZ) |
protected abstract String |
doSendCallback(String callback,
Object[] data,
String strInfo) |
protected abstract void |
doSendJsTextareaStatus(String strInfo) |
protected abstract void |
doSendJsTextStatus(String message) |
protected abstract void |
doShowDocument(URL url) |
protected abstract void |
doShowStatus(String errorMsg) |
String |
eval(String strEval) |
(package private) static void |
findApplets(String appletName,
String mySyncId,
String excludeName,
javajs.util.Lst<String> apps) |
float[][] |
functionXY(String functionName,
int nX,
int nY)
for isosurface FUNCTIONXY
|
float[][][] |
functionXYZ(String functionName,
int nX,
int nY,
int nZ)
for isosurface FUNCTIONXYZ
|
String |
getAppletInfo() |
protected boolean |
getBooleanValue(String propertyName,
boolean defaultValue) |
protected abstract String |
getJmolParameter(String name) |
Map<String,Object> |
getJSpecViewProperty(String key)
JSpecView shares the JmolSyncInterface; used to get JSpecView
|
int |
getModelIndexFromId(String id) |
Object |
getProperty(String infoType) |
Object |
getProperty(String infoType,
String paramInfo) |
String |
getPropertyAsJSON(String infoType) |
String |
getPropertyAsJSON(String infoType,
String paramInfo) |
String |
getPropertyAsString(String infoType) |
String |
getPropertyAsString(String infoType,
String paramInfo) |
Map<String,Object> |
getRegistryInfo() |
protected String |
getValue(String propertyName,
String defaultValue) |
private String |
getValueLowerCase(String paramName,
String defaultValue) |
boolean |
handleEvent(Event e) |
protected void |
init(Object applet) |
private void |
initApplication() |
protected abstract void |
initOptions() |
String |
loadDOMNode(Object DOMNode) |
String |
loadInline(String strModel)
Deprecated.
|
String |
loadInline(String[] strModels)
Deprecated.
|
String |
loadInline(String[] strModels,
String script)
Deprecated.
|
String |
loadInline(String strModel,
String script)
Deprecated.
|
String |
loadInlineArray(String[] strModels,
String script,
boolean isAppend) |
String |
loadInlineString(String strModel,
String script,
boolean isAppend) |
void |
notifyCallback(CBK type,
Object[] data) |
boolean |
notifyEnabled(CBK type) |
private String |
notifySync(String info,
String appletName) |
void |
output(String s) |
void |
playAudio(String fileOrDataURI) |
void |
register(String id,
JmolSyncInterface jsi) |
int[] |
resizeInnerPanel(String data) |
void |
script(String script) |
String |
scriptCheck(String script) |
String |
scriptNoWait(String script) |
private String |
scriptProcessor(String script,
String statusParams,
int processType) |
String |
scriptWait(String script) |
String |
scriptWait(String script,
String statusParams) |
String |
scriptWaitOutput(String script) |
private String |
sendScript(String script,
String appletName,
boolean isSync,
boolean doCallback) |
void |
setCallbackFunction(String callbackName,
String callbackFunction) |
private void |
setStringProperty(String name,
String value) |
private void |
setValue(String name,
String defaultValue) |
void |
showUrl(String urlString) |
void |
syncScript(String script) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetStereoGraphicsprotected boolean isJS
private static final int SCRIPT_CHECK
private static final int SCRIPT_WAIT
private static final int SCRIPT_NOWAIT
protected String codeBase
protected String documentBase
protected boolean isSigned
protected String language
protected boolean doTranslate
protected boolean haveDocumentAccess
protected boolean isStereoSlave
protected boolean mayScript
protected String htmlName
protected String fullName
protected String statusForm
protected String statusText
protected String statusTextarea
protected Object gRight
protected Viewer viewer
protected boolean haveNotifiedError
protected Object appletObject
protected boolean isJNLP
private boolean loading
private String syncId
private javajs.util.SB outputBuffer
protected abstract void initOptions()
protected abstract float[][] doFunctionXY(String functionName, int nX, int nY)
protected abstract float[][][] doFunctionXYZ(String functionName, int nX, int nY, int nZ)
protected abstract String doSendCallback(String callback, Object[] data, String strInfo)
protected abstract void doSendJsTextareaStatus(String strInfo)
protected abstract void doSendJsTextStatus(String message)
protected abstract void doShowDocument(URL url)
protected abstract void doShowStatus(String errorMsg)
protected void init(Object applet)
private void initApplication()
public void destroy()
destroy in interface JmolAppletInterfaceprotected boolean getBooleanValue(String propertyName, boolean defaultValue)
public void register(String id, JmolSyncInterface jsi)
register in interface JmolSyncInterfacepublic Map<String,Object> getJSpecViewProperty(String key)
getJSpecViewProperty in interface JmolStatusListenergetJSpecViewProperty in interface JmolSyncInterfacepublic void syncScript(String script)
syncScript in interface JmolSyncInterfacepublic boolean handleEvent(Event e)
handleEvent in interface JmolAppletInterfacepublic String getAppletInfo()
getAppletInfo in interface JmolAppletInterfacepublic void script(String script)
script in interface JmolAppletInterfacepublic String scriptCheck(String script)
scriptCheck in interface JmolAppletInterfacepublic String scriptNoWait(String script)
scriptNoWait in interface JmolAppletInterfacepublic String scriptWait(String script)
scriptWait in interface JmolAppletInterfacepublic String scriptWait(String script, String statusParams)
scriptWait in interface JmolAppletInterfacepublic String scriptWaitOutput(String script)
scriptWaitOutput in interface JmolAppletInterfacepublic int getModelIndexFromId(String id)
getModelIndexFromId in interface JmolAppletInterfaceid - some_id,
filename#id, or
~fileNo.modelNo
added ".basemodel" indicates to get the first model in a
series from a JDX-MOL file.public Object getProperty(String infoType)
getProperty in interface JmolAppletInterfaceinfoType - public Object getProperty(String infoType, String paramInfo)
getProperty in interface JmolAppletInterfaceinfoType - paramInfo - public String getPropertyAsString(String infoType)
getPropertyAsString in interface JmolAppletInterfaceinfoType - public String getPropertyAsString(String infoType, String paramInfo)
getPropertyAsString in interface JmolAppletInterfaceinfoType - paramInfo - public String getPropertyAsJSON(String infoType)
getPropertyAsJSON in interface JmolAppletInterfaceinfoType - public String getPropertyAsJSON(String infoType, String paramInfo)
getPropertyAsJSON in interface JmolAppletInterfaceinfoType - paramInfo - public String loadInlineString(String strModel, String script, boolean isAppend)
loadInlineString in interface JmolAppletInterfacepublic String loadInlineArray(String[] strModels, String script, boolean isAppend)
loadInlineArray in interface JmolAppletInterfacepublic String loadDOMNode(Object DOMNode)
loadDOMNode in interface JmolAppletInterface@Deprecated public String loadInline(String strModel)
loadInline in interface JmolAppletInterfacestrModel - @Deprecated public String loadInline(String strModel, String script)
loadInline in interface JmolAppletInterfacestrModel - script - @Deprecated public String loadInline(String[] strModels)
loadInline in interface JmolAppletInterfacestrModels - @Deprecated public String loadInline(String[] strModels, String script)
loadInline in interface JmolAppletInterfacestrModels - script - public void output(String s)
public void setCallbackFunction(String callbackName, String callbackFunction)
setCallbackFunction in interface JmolCallbackListenerprivate void consoleMessage(String message)
public boolean notifyEnabled(CBK type)
notifyEnabled in interface JmolCallbackListenerpublic void notifyCallback(CBK type, Object[] data)
notifyCallback in interface JmolCallbackListenertype - the callback type or null for getJsObjectInfo() -- Java applet onlydata - type-dependentprivate String sendScript(String script, String appletName, boolean isSync, boolean doCallback)
public void playAudio(String fileOrDataURI)
public String eval(String strEval)
eval in interface JmolStatusListenerpublic float[][] functionXY(String functionName, int nX, int nY)
JmolStatusListenerfunctionXY in interface JmolStatusListenerpublic float[][][] functionXYZ(String functionName, int nX, int nY, int nZ)
JmolStatusListenerfunctionXYZ in interface JmolStatusListenerpublic String createImage(String fileName, String type, Object text_or_bytes, int quality)
JmolStatusListenercreateImage in interface JmolStatusListenertext_or_bytes - information or null indicates message AFTER Jmol creates the imagepublic Map<String,Object> getRegistryInfo()
getRegistryInfo in interface JmolStatusListenerpublic void showUrl(String urlString)
showUrl in interface JmolStatusListenerpublic int[] resizeInnerPanel(String data)
resizeInnerPanel in interface JmolStatusListenerstatic void checkOut(String name)